| 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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 if (is_syzyasan) { | 254 if (is_syzyasan) { |
| 255 defines += [ | 255 defines += [ |
| 256 "SYZYASAN", | 256 "SYZYASAN", |
| 257 "MEMORY_TOOL_REPLACES_ALLOCATOR", | 257 "MEMORY_TOOL_REPLACES_ALLOCATOR", |
| 258 "MEMORY_SANITIZER_INITIAL_SIZE", | 258 "MEMORY_SANITIZER_INITIAL_SIZE", |
| 259 ] | 259 ] |
| 260 } | 260 } |
| 261 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { | 261 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { |
| 262 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] | 262 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] |
| 263 } | 263 } |
| 264 if (enable_ipc_fuzzer) { |
| 265 assert(!is_component_build, "IPC fuzzer does not support component builds.") |
| 266 defines += [ "ENABLE_IPC_FUZZER" ] |
| 267 } |
| 264 } | 268 } |
| 265 | 269 |
| 266 # Debug/release ---------------------------------------------------------------- | 270 # Debug/release ---------------------------------------------------------------- |
| 267 | 271 |
| 268 config("debug") { | 272 config("debug") { |
| 269 defines = [ | 273 defines = [ |
| 270 "_DEBUG", | 274 "_DEBUG", |
| 271 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 275 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 272 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 276 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
| 273 ] | 277 ] |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 # file doesn't exist, no error will be generated (probably MS tested this | 458 # file doesn't exist, no error will be generated (probably MS tested this |
| 455 # case but forgot the other one?). To reproduce this error, do a build, | 459 # case but forgot the other one?). To reproduce this error, do a build, |
| 456 # then delete the precompile.c.obj file, then build again. | 460 # then delete the precompile.c.obj file, then build again. |
| 457 cflags_c = [ "/wd4206" ] | 461 cflags_c = [ "/wd4206" ] |
| 458 } else if (is_mac) { | 462 } else if (is_mac) { |
| 459 precompiled_header = "build/precompile.h" | 463 precompiled_header = "build/precompile.h" |
| 460 precompiled_source = "//build/precompile.h" | 464 precompiled_source = "//build/precompile.h" |
| 461 } | 465 } |
| 462 } | 466 } |
| 463 } | 467 } |
| OLD | NEW |