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/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 if (is_tsan) { | 158 if (is_tsan) { |
159 defines += [ | 159 defines += [ |
160 "THREAD_SANITIZER", | 160 "THREAD_SANITIZER", |
161 "DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1", | 161 "DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1", |
162 "WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1", | 162 "WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1", |
163 ] | 163 ] |
164 } | 164 } |
165 if (is_msan) { | 165 if (is_msan) { |
166 defines += [ "MEMORY_SANITIZER" ] | 166 defines += [ "MEMORY_SANITIZER" ] |
167 } | 167 } |
168 if (is_ubsan || is_ubsan_vptr || is_ubsan_security) { | 168 if (is_ubsan || is_ubsan_null || is_ubsan_vptr || is_ubsan_security) { |
169 defines += [ "UNDEFINED_SANITIZER" ] | 169 defines += [ "UNDEFINED_SANITIZER" ] |
170 } | 170 } |
171 if (enable_webrtc) { | 171 if (enable_webrtc) { |
172 defines += [ "ENABLE_WEBRTC=1" ] | 172 defines += [ "ENABLE_WEBRTC=1" ] |
173 } | 173 } |
174 if (!enable_nacl) { | 174 if (!enable_nacl) { |
175 defines += [ "DISABLE_NACL" ] | 175 defines += [ "DISABLE_NACL" ] |
176 } | 176 } |
177 if (enable_extensions) { | 177 if (enable_extensions) { |
178 defines += [ "ENABLE_EXTENSIONS=1" ] | 178 defines += [ "ENABLE_EXTENSIONS=1" ] |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 # file doesn't exist, no error will be generated (probably MS tested this | 447 # file doesn't exist, no error will be generated (probably MS tested this |
448 # case but forgot the other one?). To reproduce this error, do a build, | 448 # case but forgot the other one?). To reproduce this error, do a build, |
449 # then delete the precompile.c.obj file, then build again. | 449 # then delete the precompile.c.obj file, then build again. |
450 cflags_c = [ "/wd4206" ] | 450 cflags_c = [ "/wd4206" ] |
451 } else if (is_mac) { | 451 } else if (is_mac) { |
452 precompiled_header = "build/precompile.h" | 452 precompiled_header = "build/precompile.h" |
453 precompiled_source = "//build/precompile.h" | 453 precompiled_source = "//build/precompile.h" |
454 } | 454 } |
455 } | 455 } |
456 } | 456 } |
OLD | NEW |