blob: 5adcff2ef28009e8d1b0f524210c0f02b1d6ac46 [file] [log] [blame]
Marcin Simonides2f14ea12018-01-23 20:30:031# 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 Weber897593f2019-07-25 23:17:555import("//build/buildflag_header.gni")
6import("//build/config/chrome_build.gni")
Michael Spang8a063342019-12-06 22:54:337import("//build/config/chromecast_build.gni")
Hidehiko Abe9c499c22020-09-03 18:10:338import("//build/config/chromeos/args.gni")
James Cook26d27122020-06-26 19:57:079import("//build/config/chromeos/ui_mode.gni")
Nico Weber897593f2019-07-25 23:17:5510
Marcin Simonides2f14ea12018-01-23 20:30:0311source_set("buildflag_header_h") {
Nico Weber4782d73682020-01-14 04:52:1712 sources = [ "buildflag.h" ]
Marcin Simonides2f14ea12018-01-23 20:30:0313}
Nico Weber897593f2019-07-25 23:17:5514
15buildflag_header("branding_buildflags") {
16 header = "branding_buildflags.h"
17
Nico Weber0cc71122019-07-29 17:30:4018 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 Weber897593f2019-07-25 23:17:5529}
Michael Spang8a063342019-12-06 22:54:3330
31buildflag_header("chromecast_buildflags") {
32 header = "chromecast_buildflags.h"
33
34 flags = [ "IS_CHROMECAST=$is_chromecast" ]
35}
James Cook26d27122020-06-26 19:57:0736
Hidehiko Abe7c68f582020-09-03 15:47:2537buildflag_header("chromeos_buildflags") {
38 header = "chromeos_buildflags.h"
James Cook26d27122020-06-26 19:57:0739
Hidehiko Abe9c499c22020-09-03 18:10:3340 flags = [
41 "IS_CHROMEOS_DEVICE=$is_chromeos_device",
Yuta Hijikata2431a912020-10-28 15:49:4842
Yuta Hijikata2431a912020-10-28 15:49:4843 "IS_CHROMEOS_LACROS=$is_chromeos_lacros",
44 "IS_CHROMEOS_ASH=$is_chromeos_ash",
xiangdong kongbe3f6d42021-10-05 03:14:4045 "IS_CHROMEOS_WITH_HW_DETAILS=$is_chromeos_with_hw_details",
Richard Chui57f6b262022-02-15 01:21:3646 "IS_REVEN=$is_reven",
Hidehiko Abe9c499c22020-09-03 18:10:3347 ]
James Cook26d27122020-06-26 19:57:0748}