| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 if (is_syzyasan) { | 269 if (is_syzyasan) { |
| 270 defines += [ | 270 defines += [ |
| 271 "SYZYASAN", | 271 "SYZYASAN", |
| 272 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 272 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
| 273 "MEMORY_SANITIZER_INITIAL_SIZE", | 273 "MEMORY_SANITIZER_INITIAL_SIZE", |
| 274 ] | 274 ] |
| 275 } | 275 } |
| 276 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { | 276 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { |
| 277 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] | 277 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] |
| 278 } | 278 } |
| 279 if (enable_arc) { |
| 280 defines += [ "ENABLE_ARC=1" ] |
| 281 } |
| 279 } | 282 } |
| 280 | 283 |
| 281 # Debug/release ---------------------------------------------------------------- | 284 # Debug/release ---------------------------------------------------------------- |
| 282 | 285 |
| 283 config("debug") { | 286 config("debug") { |
| 284 defines = [ | 287 defines = [ |
| 285 "_DEBUG", | 288 "_DEBUG", |
| 286 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 289 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 287 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 290 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
| 288 ] | 291 ] |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 # This error doesn't happen every time. In VS2013, it seems if the .pch | 436 # This error doesn't happen every time. In VS2013, it seems if the .pch |
| 434 # file doesn't exist, no error will be generated (probably MS tested this | 437 # file doesn't exist, no error will be generated (probably MS tested this |
| 435 # case but forgot the other one?). To reproduce this error, do a build, | 438 # case but forgot the other one?). To reproduce this error, do a build, |
| 436 # then delete the precompile.c.obj file, then build again. | 439 # then delete the precompile.c.obj file, then build again. |
| 437 cflags_c = [ "/wd4206" ] | 440 cflags_c = [ "/wd4206" ] |
| 438 } else if (is_mac && !is_official_build && !use_goma) { | 441 } else if (is_mac && !is_official_build && !use_goma) { |
| 439 precompiled_header = "build/precompile.h" | 442 precompiled_header = "build/precompile.h" |
| 440 precompiled_source = "//build/precompile.h" | 443 precompiled_source = "//build/precompile.h" |
| 441 } | 444 } |
| 442 } | 445 } |
| OLD | NEW |