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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 'conditions' : [ | 428 'conditions' : [ |
429 [ 'skia_shared_lib', { | 429 [ 'skia_shared_lib', { |
430 'defines': [ | 430 'defines': [ |
431 'SKIA_DLL', | 431 'SKIA_DLL', |
432 'SKIA_IMPLEMENTATION=1', | 432 'SKIA_IMPLEMENTATION=1', |
433 ], | 433 ], |
434 }], | 434 }], |
435 # Enable asan, tsan, etc. | 435 # Enable asan, tsan, etc. |
436 [ 'skia_sanitizer', { | 436 [ 'skia_sanitizer', { |
437 'cflags': [ | 437 'cflags': [ |
438 '-fsanitize=<(skia_sanitizer)', | 438 '-fsanitize=<(skia_sanitizer)', # Turn on sani
tizers. |
439 '-fno-sanitize-recover=<(skia_sanitizer)', | 439 '-fno-sanitize-recover=<(skia_sanitizer)', # Make any fai
lure fatal. |
| 440 '-fsanitize-blacklist=<(skia_sanitizer_blacklist)', # Compile in o
ur blacklist. |
| 441 '-include <(skia_sanitizer_blacklist)', # Make every .
cpp depend on it. |
440 ], | 442 ], |
441 'ldflags': [ | 443 'ldflags': [ |
442 '-fsanitize=<(skia_sanitizer)', | 444 '-fsanitize=<(skia_sanitizer)', |
443 ], | 445 ], |
444 'conditions' : [ | 446 'conditions' : [ |
445 [ 'skia_sanitizer == "thread"', { | 447 [ 'skia_sanitizer == "thread"', { |
446 'defines': [ 'THREAD_SANITIZER' ], | 448 'defines': [ 'THREAD_SANITIZER' ], |
447 }], | 449 }], |
448 [ 'skia_sanitizer == "undefined"', { | 450 [ 'skia_sanitizer == "undefined"', { |
449 'cflags_cc!': ['-fno-rtti'], | 451 'cflags_cc!': ['-fno-rtti'], |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 649 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
648 }, | 650 }, |
649 }], | 651 }], |
650 | 652 |
651 ], # end 'conditions' | 653 ], # end 'conditions' |
652 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 654 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
653 'xcode_settings': { | 655 'xcode_settings': { |
654 'SYMROOT': '<(DEPTH)/xcodebuild', | 656 'SYMROOT': '<(DEPTH)/xcodebuild', |
655 }, | 657 }, |
656 } | 658 } |
OLD | NEW |