OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # conditions used in both common.gypi and skia.gyp in chromium | 6 # conditions used in both common.gypi and skia.gyp in chromium |
7 # | 7 # |
8 { | 8 { |
9 'defines': [ | 9 'defines': [ |
10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 '-fsanitize=<(skia_sanitizer)', # Turn on sani
tizers. | 444 '-fsanitize=<(skia_sanitizer)', # Turn on sani
tizers. |
445 '-fno-sanitize-recover=<(skia_sanitizer)', # Make any fai
lure fatal. | 445 '-fno-sanitize-recover=<(skia_sanitizer)', # Make any fai
lure fatal. |
446 '-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in o
ur blacklist. | 446 '-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in o
ur blacklist. |
447 '-include <(skia_sanitizer_blacklist)', # Make every .
cpp depend on it. | 447 '-include <(skia_sanitizer_blacklist)', # Make every .
cpp depend on it. |
448 ], | 448 ], |
449 'ldflags': [ '-fsanitize=<(skia_sanitizer)' ], | 449 'ldflags': [ '-fsanitize=<(skia_sanitizer)' ], |
450 'conditions' : [ | 450 'conditions' : [ |
451 [ 'skia_sanitizer == "thread"', { | 451 [ 'skia_sanitizer == "thread"', { |
452 'defines': [ 'THREAD_SANITIZER' ], | 452 'defines': [ 'THREAD_SANITIZER' ], |
453 }], | 453 }], |
| 454 [ 'skia_sanitizer == "memory"', { |
| 455 'cflags': [ '-fsanitize-memory-track-origins' ], |
| 456 }], |
454 ], | 457 ], |
455 }], | 458 }], |
456 [ 'skia_clang_build', { | 459 [ 'skia_clang_build', { |
457 'cflags_cc': [ | 460 'cflags_cc': [ |
458 '-Wno-unknown-warning-option', # Allows unknown warnings. | 461 '-Wno-unknown-warning-option', # Allows unknown warnings. |
459 '-Wno-deprecated', # From Qt, via debugger (older C
lang). | 462 '-Wno-deprecated', # From Qt, via debugger (older C
lang). |
460 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). | 463 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). |
461 ], | 464 ], |
462 'cflags': [ | 465 'cflags': [ |
463 # Extra warnings we like but that only Clang knows about. | 466 # Extra warnings we like but that only Clang knows about. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 668 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
666 }, | 669 }, |
667 }], | 670 }], |
668 | 671 |
669 ], # end 'conditions' | 672 ], # end 'conditions' |
670 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 673 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
671 'xcode_settings': { | 674 'xcode_settings': { |
672 'SYMROOT': '<(DEPTH)/xcodebuild', | 675 'SYMROOT': '<(DEPTH)/xcodebuild', |
673 }, | 676 }, |
674 } | 677 } |
OLD | NEW |