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 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
10 | 10 |
11 declare_args() { | 11 declare_args() { |
12 # When set, turns off the (normally-on) iterator debugging and related stuff | 12 # When set, turns off the (normally-on) iterator debugging and related stuff |
13 # that is normally turned on for Debug builds. These are generally useful for | 13 # that is normally turned on for Debug builds. These are generally useful for |
14 # catching bugs but in some cases may cause conflicts or excessive slowness. | 14 # catching bugs but in some cases may cause conflicts or excessive slowness. |
15 disable_iterator_debugging = false | 15 disable_iterator_debugging = false |
16 | 16 |
17 # Set to true to not store any build metadata, e.g. ifdef out all __DATE__ | 17 # Set to true to not store any build metadata, e.g. ifdef out all __DATE__ |
18 # and __TIME__. Set to 0 to reenable the use of these macros in the code | 18 # and __TIME__. Set to 0 to reenable the use of these macros in the code |
19 # base. See http://crbug.com/314403. | 19 # base. See http://crbug.com/314403. |
20 # | 20 # |
21 # Continue to embed build meta data in Official builds, basically the | 21 # Continue to embed build meta data in Official builds, basically the |
22 # time it was built. | 22 # time it was built. |
23 # TODO(maruel): This decision should be revisited because having an | 23 # TODO(maruel): This decision should be revisited because having an |
24 # official deterministic build has high value too but MSVC toolset can't | 24 # official deterministic build has high value too but MSVC toolset can't |
25 # generate anything deterministic with WPO enabled AFAIK. | 25 # generate anything deterministic with WPO enabled AFAIK. |
26 dont_embed_build_metadata = is_official_build | 26 dont_embed_build_metadata = is_official_build |
27 | 27 |
28 # Set to true to enable dcheck in Release builds. | 28 # Set to true to enable dcheck in Release builds. |
29 dcheck_always_on = false | 29 dcheck_always_on = false |
| 30 |
| 31 # Set to true to compile with the OpenGL ES 2.0 conformance tests. |
| 32 internal_gles2_conform_tests = false |
30 } | 33 } |
31 | 34 |
32 # TODO(brettw) Most of these should be removed. Instead of global feature | 35 # TODO(brettw) Most of these should be removed. Instead of global feature |
33 # flags, we should have more modular flags that apply only to a target and its | 36 # flags, we should have more modular flags that apply only to a target and its |
34 # dependents. For example, depending on the "x11" meta-target should define | 37 # dependents. For example, depending on the "x11" meta-target should define |
35 # USE_X11 for all dependents so that everything that could use X11 gets the | 38 # USE_X11 for all dependents so that everything that could use X11 gets the |
36 # define, but anything that doesn't depend on X11 doesn't see it. | 39 # define, but anything that doesn't depend on X11 doesn't see it. |
37 # | 40 # |
38 # For now we define these globally to match the current GYP build. | 41 # For now we define these globally to match the current GYP build. |
39 config("feature_flags") { | 42 config("feature_flags") { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 defines += [ "USE_CLIPBOARD_AURAX11=1" ] | 115 defines += [ "USE_CLIPBOARD_AURAX11=1" ] |
113 } | 116 } |
114 if (use_default_render_theme) { | 117 if (use_default_render_theme) { |
115 defines += [ "USE_DEFAULT_RENDER_THEME=1" ] | 118 defines += [ "USE_DEFAULT_RENDER_THEME=1" ] |
116 } | 119 } |
117 if (use_glib) { | 120 if (use_glib) { |
118 defines += [ "USE_GLIB=1" ] | 121 defines += [ "USE_GLIB=1" ] |
119 } | 122 } |
120 if (use_openssl) { | 123 if (use_openssl) { |
121 defines += [ "USE_OPENSSL=1" ] | 124 defines += [ "USE_OPENSSL=1" ] |
122 if (use_openssl_certs) { | 125 } |
123 defines += [ "USE_OPENSSL_CERTS=1" ] | 126 if (use_openssl_certs) { |
124 } | 127 defines += [ "USE_OPENSSL_CERTS=1" ] |
125 } else if (use_nss_certs) { | 128 } |
126 # USE_NSS really means "use nss for certificate validation and storage" | 129 if (use_nss_certs) { |
127 # (like USE_OPENSSL_CERTS) and not "we're linking to NSS." It might be nice | 130 defines += [ "USE_NSS_CERTS=1" ] |
128 # to rename this but we're hoping to transition away from NSS. | |
129 defines += [ "USE_NSS=1" ] | |
130 } | 131 } |
131 if (use_ozone) { | 132 if (use_ozone) { |
132 defines += [ "USE_OZONE=1" ] | 133 defines += [ "USE_OZONE=1" ] |
133 } | 134 } |
134 if (use_x11) { | 135 if (use_x11) { |
135 defines += [ "USE_X11=1" ] | 136 defines += [ "USE_X11=1" ] |
136 } | 137 } |
137 if (use_allocator != "tcmalloc") { | 138 if (use_allocator != "tcmalloc") { |
138 defines += [ "NO_TCMALLOC" ] | 139 defines += [ "NO_TCMALLOC" ] |
139 } | 140 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 219 } |
219 if (v8_use_external_startup_data) { | 220 if (v8_use_external_startup_data) { |
220 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] | 221 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
221 } | 222 } |
222 if (enable_background) { | 223 if (enable_background) { |
223 defines += [ "ENABLE_BACKGROUND=1" ] | 224 defines += [ "ENABLE_BACKGROUND=1" ] |
224 } | 225 } |
225 if (enable_pre_sync_backup) { | 226 if (enable_pre_sync_backup) { |
226 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] | 227 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] |
227 } | 228 } |
| 229 if (enable_video_hole) { |
| 230 defines += [ "VIDEO_HOLE=1" ] |
| 231 } |
| 232 if (safe_browsing_mode == 1) { |
| 233 defines += [ "FULL_SAFE_BROWSING" ] |
| 234 defines += [ "SAFE_BROWSING_CSD" ] |
| 235 defines += [ "SAFE_BROWSING_DB_LOCAL" ] |
| 236 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 237 } else if (safe_browsing_mode == 2) { |
| 238 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 239 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 240 } |
228 } | 241 } |
229 | 242 |
230 # Debug/release ---------------------------------------------------------------- | 243 # Debug/release ---------------------------------------------------------------- |
231 | 244 |
232 config("debug") { | 245 config("debug") { |
233 defines = [ | 246 defines = [ |
234 "_DEBUG", | 247 "_DEBUG", |
235 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 248 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
236 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 249 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
237 ] | 250 ] |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 "CoreFoundation.framework", | 338 "CoreFoundation.framework", |
326 "CoreGraphics.framework", | 339 "CoreGraphics.framework", |
327 "CoreText.framework", | 340 "CoreText.framework", |
328 "Foundation.framework", | 341 "Foundation.framework", |
329 "UIKit.framework", | 342 "UIKit.framework", |
330 ] | 343 ] |
331 } else if (is_linux) { | 344 } else if (is_linux) { |
332 libs = [ "dl" ] | 345 libs = [ "dl" ] |
333 } | 346 } |
334 } | 347 } |
OLD | NEW |