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", | |
35 "ENABLE_NOTIFICATIONS", | 34 "ENABLE_NOTIFICATIONS", |
36 "ENABLE_EGLIMAGE=1", | 35 "ENABLE_EGLIMAGE=1", |
37 "ENABLE_BACKGROUND=1", | 36 "ENABLE_BACKGROUND=1", |
38 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. | 37 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. |
39 # Temporary suppression until Blink code can be removed. | 38 # Temporary suppression until Blink code can be removed. |
40 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", | 39 "BLINK_SCALE_FILTERS_AT_RECORD_TIME", |
41 ] | 40 ] |
42 | 41 |
43 if (cld_version > 0) { | 42 if (cld_version > 0) { |
44 defines += [ "CLD_VERSION=$cld_version" ] | 43 defines += [ "CLD_VERSION=$cld_version" ] |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 172 } |
174 if (enable_image_loader_extension) { | 173 if (enable_image_loader_extension) { |
175 defines += [ "IMAGE_LOADER_EXTENSION=1" ] | 174 defines += [ "IMAGE_LOADER_EXTENSION=1" ] |
176 } | 175 } |
177 if (enable_remoting) { | 176 if (enable_remoting) { |
178 defines += [ "ENABLE_REMOTING=1" ] | 177 defines += [ "ENABLE_REMOTING=1" ] |
179 } | 178 } |
180 if (enable_google_now) { | 179 if (enable_google_now) { |
181 defines += [ "ENABLE_GOOGLE_NOW=1" ] | 180 defines += [ "ENABLE_GOOGLE_NOW=1" ] |
182 } | 181 } |
| 182 if (enable_one_click_signin) { |
| 183 defines += [ "ENABLE_ONE_CLICK_SIGNIN" ] |
| 184 } |
183 } | 185 } |
184 | 186 |
185 # Debug/release ---------------------------------------------------------------- | 187 # Debug/release ---------------------------------------------------------------- |
186 | 188 |
187 config("debug") { | 189 config("debug") { |
188 defines = [ | 190 defines = [ |
189 "_DEBUG", | 191 "_DEBUG", |
190 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 192 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
191 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 193 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
192 ] | 194 ] |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 "CoreText.framework", | 278 "CoreText.framework", |
277 "Foundation.framework", | 279 "Foundation.framework", |
278 "UIKit.framework", | 280 "UIKit.framework", |
279 ] | 281 ] |
280 } else if (is_linux) { | 282 } else if (is_linux) { |
281 libs = [ | 283 libs = [ |
282 "dl", | 284 "dl", |
283 ] | 285 ] |
284 } | 286 } |
285 } | 287 } |
OLD | NEW |