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") |
Hidehiko Abe | 9c499c2 | 2020-09-03 18:10:33 | [diff] [blame] | 8 | import("//build/config/chromeos/args.gni") |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame] | 9 | import("//build/config/chromeos/ui_mode.gni") |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 10 | |
Marcin Simonides | 2f14ea1 | 2018-01-23 20:30:03 | [diff] [blame] | 11 | source_set("buildflag_header_h") { |
Nico Weber | 4782d7368 | 2020-01-14 04:52:17 | [diff] [blame] | 12 | sources = [ "buildflag.h" ] |
Marcin Simonides | 2f14ea1 | 2018-01-23 20:30:03 | [diff] [blame] | 13 | } |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 14 | |
| 15 | buildflag_header("branding_buildflags") { |
| 16 | header = "branding_buildflags.h" |
| 17 | |
Nico Weber | 0cc7112 | 2019-07-29 17:30:40 | [diff] [blame] | 18 | if (is_chrome_branded) { |
| 19 | flags = [ |
| 20 | "CHROMIUM_BRANDING=0", |
| 21 | "GOOGLE_CHROME_BRANDING=1", |
| 22 | ] |
| 23 | } else { |
| 24 | flags = [ |
| 25 | "CHROMIUM_BRANDING=1", |
| 26 | "GOOGLE_CHROME_BRANDING=0", |
| 27 | ] |
| 28 | } |
Nico Weber | 897593f | 2019-07-25 23:17:55 | [diff] [blame] | 29 | } |
Michael Spang | 8a06334 | 2019-12-06 22:54:33 | [diff] [blame] | 30 | |
| 31 | buildflag_header("chromecast_buildflags") { |
| 32 | header = "chromecast_buildflags.h" |
| 33 | |
| 34 | flags = [ "IS_CHROMECAST=$is_chromecast" ] |
| 35 | } |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame] | 36 | |
Hidehiko Abe | 7c68f58 | 2020-09-03 15:47:25 | [diff] [blame] | 37 | buildflag_header("chromeos_buildflags") { |
| 38 | header = "chromeos_buildflags.h" |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame] | 39 | |
Hidehiko Abe | 9c499c2 | 2020-09-03 18:10:33 | [diff] [blame] | 40 | flags = [ |
| 41 | "IS_CHROMEOS_DEVICE=$is_chromeos_device", |
Yuta Hijikata | 2431a91 | 2020-10-28 15:49:48 | [diff] [blame] | 42 | |
Yuta Hijikata | 2431a91 | 2020-10-28 15:49:48 | [diff] [blame] | 43 | "IS_CHROMEOS_LACROS=$is_chromeos_lacros", |
| 44 | "IS_CHROMEOS_ASH=$is_chromeos_ash", |
xiangdong kong | be3f6d4 | 2021-10-05 03:14:40 | [diff] [blame] | 45 | "IS_CHROMEOS_WITH_HW_DETAILS=$is_chromeos_with_hw_details", |
Richard Chui | 57f6b26 | 2022-02-15 01:21:36 | [diff] [blame] | 46 | "IS_REVEN=$is_reven", |
Hidehiko Abe | 9c499c2 | 2020-09-03 18:10:33 | [diff] [blame] | 47 | ] |
James Cook | 26d2712 | 2020-06-26 19:57:07 | [diff] [blame] | 48 | } |