OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/allocator.gni") | 5 import("//build/config/allocator.gni") |
6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
(...skipping 13 matching lines...) Expand all Loading... |
24 # flags, we should have more modular flags that apply only to a target and its | 24 # flags, we should have more modular flags that apply only to a target and its |
25 # dependents. For example, depending on the "x11" meta-target should define | 25 # dependents. For example, depending on the "x11" meta-target should define |
26 # USE_X11 for all dependents so that everything that could use X11 gets the | 26 # USE_X11 for all dependents so that everything that could use X11 gets the |
27 # define, but anything that doesn't depend on X11 doesn't see it. | 27 # define, but anything that doesn't depend on X11 doesn't see it. |
28 # | 28 # |
29 # For now we define these globally to match the current GYP build. | 29 # For now we define these globally to match the current GYP build. |
30 config("feature_flags") { | 30 config("feature_flags") { |
31 # TODO(brettw) most of these need to be parameterized. | 31 # TODO(brettw) most of these need to be parameterized. |
32 defines = [ | 32 defines = [ |
33 "CHROMIUM_BUILD", | 33 "CHROMIUM_BUILD", |
| 34 "ENABLE_ONE_CLICK_SIGNIN", |
34 "ENABLE_NOTIFICATIONS", | 35 "ENABLE_NOTIFICATIONS", |
35 "ENABLE_EGLIMAGE=1", | 36 "ENABLE_EGLIMAGE=1", |
36 "ENABLE_BACKGROUND=1", | 37 "ENABLE_BACKGROUND=1", |
37 "USE_MOJO=1", | 38 "USE_MOJO=1", |
38 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 39 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
39 # Temporary suppression until Blink code can be removed. | 40 # Temporary suppression until Blink code can be removed. |
40 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", | 41 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", |
41 ] | 42 ] |
42 | 43 |
43 if (cld_version > 0) { | 44 if (cld_version > 0) { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 174 } |
174 if (enable_image_loader_extension) { | 175 if (enable_image_loader_extension) { |
175 defines += [ "IMAGE_LOADER_EXTENSION=1" ] | 176 defines += [ "IMAGE_LOADER_EXTENSION=1" ] |
176 } | 177 } |
177 if (enable_remoting) { | 178 if (enable_remoting) { |
178 defines += [ "ENABLE_REMOTING=1" ] | 179 defines += [ "ENABLE_REMOTING=1" ] |
179 } | 180 } |
180 if (enable_google_now) { | 181 if (enable_google_now) { |
181 defines += [ "ENABLE_GOOGLE_NOW=1" ] | 182 defines += [ "ENABLE_GOOGLE_NOW=1" ] |
182 } | 183 } |
183 if (enable_one_click_signin) { | |
184 defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] | |
185 } | |
186 } | 184 } |
187 | 185 |
188 # Debug/release ---------------------------------------------------------------- | 186 # Debug/release ---------------------------------------------------------------- |
189 | 187 |
190 config("debug") { | 188 config("debug") { |
191 defines = [ | 189 defines = [ |
192 "_DEBUG", | 190 "_DEBUG", |
193 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 191 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
194 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 192 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
195 ] | 193 ] |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 "CoreText.framework", | 277 "CoreText.framework", |
280 "Foundation.framework", | 278 "Foundation.framework", |
281 "UIKit.framework", | 279 "UIKit.framework", |
282 ] | 280 ] |
283 } else if (is_linux) { | 281 } else if (is_linux) { |
284 libs = [ | 282 libs = [ |
285 "dl", | 283 "dl", |
286 ] | 284 ] |
287 } | 285 } |
288 } | 286 } |
OLD | NEW |