OLD | NEW |
1 # conditions used in both common.gypi and skia.gyp in chromium | 1 # conditions used in both common.gypi and skia.gyp in chromium |
2 # | 2 # |
3 { | 3 { |
4 'defines': [ | 4 'defines': [ |
5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
6 ], | 6 ], |
7 'conditions' : [ | 7 'conditions' : [ |
8 [ 'skia_gpu == 1', | 8 [ 'skia_gpu == 1', |
9 { | 9 { |
10 'defines': [ | 10 'defines': [ |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 [ 'skia_arch_width == 32 and skia_arch_type == "x86"', { | 270 [ 'skia_arch_width == 32 and skia_arch_type == "x86"', { |
271 'cflags': [ | 271 'cflags': [ |
272 '-m32', | 272 '-m32', |
273 ], | 273 ], |
274 'ldflags': [ | 274 'ldflags': [ |
275 '-m32', | 275 '-m32', |
276 ], | 276 ], |
277 }], | 277 }], |
278 ], | 278 ], |
279 }], | 279 }], |
280 [ 'skia_asan_build', { | 280 # Enable asan, tsan, etc. |
| 281 [ 'skia_sanitizer', { |
281 'cflags': [ | 282 'cflags': [ |
282 '-fsanitize=address', | 283 '-fsanitize=<(skia_sanitizer)', |
283 '-fno-omit-frame-pointer', | 284 '-fno-omit-frame-pointer', |
284 ], | 285 ], |
285 'ldflags': [ | 286 'ldflags': [ |
286 '-fsanitize=address', | 287 '-fsanitize=<(skia_sanitizer)', |
287 ], | |
288 }], | |
289 [ 'skia_tsan_build', { | |
290 'cflags': [ | |
291 '-fsanitize=thread', | |
292 '-fno-omit-frame-pointer', | |
293 ], | |
294 'ldflags': [ | |
295 '-fsanitize=thread', | |
296 ], | 288 ], |
297 }], | 289 }], |
298 [ 'skia_clang_build', { | 290 [ 'skia_clang_build', { |
299 'cflags': [ | 291 'cflags': [ |
| 292 # Extra warnings we like but that only Clang knows about. |
300 '-Wstring-conversion', | 293 '-Wstring-conversion', |
301 ], | 294 ], |
302 }], | 295 }], |
303 ], | 296 ], |
304 }, | 297 }, |
305 ], | 298 ], |
306 | 299 |
307 [ 'skia_os == "mac"', | 300 [ 'skia_os == "mac"', |
308 { | 301 { |
309 'variables': { | 302 'variables': { |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 'xcode_settings': { | 488 'xcode_settings': { |
496 'SYMROOT': '<(DEPTH)/xcodebuild', | 489 'SYMROOT': '<(DEPTH)/xcodebuild', |
497 }, | 490 }, |
498 } | 491 } |
499 | 492 |
500 # Local Variables: | 493 # Local Variables: |
501 # tab-width:2 | 494 # tab-width:2 |
502 # indent-tabs-mode:nil | 495 # indent-tabs-mode:nil |
503 # End: | 496 # End: |
504 # vim: set expandtab tabstop=2 shiftwidth=2: | 497 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |