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/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 if (enable_webvr) { | 277 if (enable_webvr) { |
278 defines += [ "ENABLE_WEBVR" ] | 278 defines += [ "ENABLE_WEBVR" ] |
279 } | 279 } |
280 if (is_syzyasan) { | 280 if (is_syzyasan) { |
281 defines += [ | 281 defines += [ |
282 "SYZYASAN", | 282 "SYZYASAN", |
283 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 283 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
284 "MEMORY_SANITIZER_INITIAL_SIZE", | 284 "MEMORY_SANITIZER_INITIAL_SIZE", |
285 ] | 285 ] |
286 } | 286 } |
| 287 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { |
| 288 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] |
| 289 } |
287 } | 290 } |
288 | 291 |
289 # Debug/release ---------------------------------------------------------------- | 292 # Debug/release ---------------------------------------------------------------- |
290 | 293 |
291 config("debug") { | 294 config("debug") { |
292 defines = [ | 295 defines = [ |
293 "_DEBUG", | 296 "_DEBUG", |
294 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 297 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
295 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 298 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
296 ] | 299 ] |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 # with precompiled headers since the source file that's "compiled" for | 441 # with precompiled headers since the source file that's "compiled" for |
439 # making the precompiled header is empty. | 442 # making the precompiled header is empty. |
440 # | 443 # |
441 # This error doesn't happen every time. In VS2013, it seems if the .pch | 444 # This error doesn't happen every time. In VS2013, it seems if the .pch |
442 # file doesn't exist, no error will be generated (probably MS tested this | 445 # file doesn't exist, no error will be generated (probably MS tested this |
443 # case but forgot the other one?). To reproduce this error, do a build, | 446 # case but forgot the other one?). To reproduce this error, do a build, |
444 # then delete the precompile.c.obj file, then build again. | 447 # then delete the precompile.c.obj file, then build again. |
445 cflags_c = [ "/wd4206" ] | 448 cflags_c = [ "/wd4206" ] |
446 } | 449 } |
447 } | 450 } |
OLD | NEW |