Marcin Simonides | 2f14ea1 | 2018-01-23 20:30:03 | [diff] [blame] | 1 | # Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 5 | import("//build/buildflag_header.gni") |
| 6 | import("//build/config/chrome_build.gni") |
Michael Spang | 8a06334 | 2019-12-06 22:54:33 | [diff] [blame] | 7 | import("//build/config/chromecast_build.gni") |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame^] | 8 | import("//build/config/chromeos/ui_mode.gni") |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 9 | |
Marcin Simonides | 2f14ea1 | 2018-01-23 20:30:03 | [diff] [blame] | 10 | source_set("buildflag_header_h") { |
Nico Weber | 4782d7368 | 2020-01-14 04:52:17 | [diff] [blame] | 11 | sources = [ "buildflag.h" ] |
Marcin Simonides | 2f14ea1 | 2018-01-23 20:30:03 | [diff] [blame] | 12 | } |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 13 | |
| 14 | buildflag_header("branding_buildflags") { |
| 15 | header = "branding_buildflags.h" |
| 16 | |
Nico Weber | 0cc7112 | 2019-07-29 17:30:40 | [diff] [blame] | 17 | if (is_chrome_branded) { |
| 18 | flags = [ |
| 19 | "CHROMIUM_BRANDING=0", |
| 20 | "GOOGLE_CHROME_BRANDING=1", |
| 21 | ] |
| 22 | } else { |
| 23 | flags = [ |
| 24 | "CHROMIUM_BRANDING=1", |
| 25 | "GOOGLE_CHROME_BRANDING=0", |
| 26 | ] |
| 27 | } |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 28 | } |
Michael Spang | 8a06334 | 2019-12-06 22:54:33 | [diff] [blame] | 29 | |
| 30 | buildflag_header("chromecast_buildflags") { |
| 31 | header = "chromecast_buildflags.h" |
| 32 | |
| 33 | flags = [ "IS_CHROMECAST=$is_chromecast" ] |
| 34 | } |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame^] | 35 | |
| 36 | buildflag_header("lacros_buildflags") { |
| 37 | header = "lacros_buildflags.h" |
| 38 | |
| 39 | flags = [ "IS_LACROS=$chromeos_is_browser_only" ] |
| 40 | } |