summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/BUILD.gn
blob: b1724eb6a037431f3cdef655d649367c50bf753b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/buildflag_header.gni")
import("//build/config/chrome_build.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")

source_set("buildflag_header_h") {
  sources = [ "buildflag.h" ]
}

buildflag_header("branding_buildflags") {
  header = "branding_buildflags.h"

  if (is_chrome_branded) {
    flags = [
      "CHROMIUM_BRANDING=0",
      "GOOGLE_CHROME_BRANDING=1",
    ]
  } else {
    flags = [
      "CHROMIUM_BRANDING=1",
      "GOOGLE_CHROME_BRANDING=0",
    ]
  }
}

buildflag_header("chromecast_buildflags") {
  header = "chromecast_buildflags.h"

  flags = [ "IS_CHROMECAST=$is_chromecast" ]
}

buildflag_header("chromeos_buildflags") {
  header = "chromeos_buildflags.h"

  flags = [
    "IS_CHROMEOS_DEVICE=$is_chromeos_device",

    "IS_CHROMEOS_LACROS=$is_chromeos_lacros",
    "IS_CHROMEOS_ASH=$is_chromeos_ash",
  ]
}

buildflag_header("os_buildflags") {
  header = "os_buildflags.h"
  flags = [
    "IS_ANDROID=$is_android",
    "IS_CHROMEOS=$is_chromeos",
    "IS_FUCHSIA=$is_fuchsia",
    "IS_IOS=$is_ios",
    "IS_LINUX=$is_linux",
    "IS_MAC=$is_mac",
    "IS_NACL=$is_nacl",
    "IS_WIN=$is_win",
    "IS_APPLE=$is_apple",
    "IS_POSIX=$is_posix",
  ]
}