blob: 809380bb5a94d0c59cfe18db1f991c4dbfee3724 [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")
James Cook26d27122020-06-26 19:57:078import("//build/config/chromeos/ui_mode.gni")
Nico Weber897593f2019-07-25 23:17:559
Marcin Simonides2f14ea12018-01-23 20:30:0310source_set("buildflag_header_h") {
Nico Weber4782d73682020-01-14 04:52:1711 sources = [ "buildflag.h" ]
Marcin Simonides2f14ea12018-01-23 20:30:0312}
Nico Weber897593f2019-07-25 23:17:5513
14buildflag_header("branding_buildflags") {
15 header = "branding_buildflags.h"
16
Nico Weber0cc71122019-07-29 17:30:4017 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 Weber897593f2019-07-25 23:17:5528}
Michael Spang8a063342019-12-06 22:54:3329
30buildflag_header("chromecast_buildflags") {
31 header = "chromecast_buildflags.h"
32
33 flags = [ "IS_CHROMECAST=$is_chromecast" ]
34}
James Cook26d27122020-06-26 19:57:0735
36buildflag_header("lacros_buildflags") {
37 header = "lacros_buildflags.h"
38
39 flags = [ "IS_LACROS=$chromeos_is_browser_only" ]
40}