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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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"', { | 454 [ 'skia_sanitizer == "memory"', { |
455 'cflags': [ '-fsanitize-memory-track-origins' ], | 455 'cflags': [ |
| 456 '-O1', |
| 457 '-fsanitize-memory-track-origins', |
| 458 ], |
456 }], | 459 }], |
457 ], | 460 ], |
458 }], | 461 }], |
459 [ 'skia_clang_build', { | 462 [ 'skia_clang_build', { |
460 'cflags_cc': [ | 463 'cflags_cc': [ |
461 '-Wno-unknown-warning-option', # Allows unknown warnings. | 464 '-Wno-unknown-warning-option', # Allows unknown warnings. |
462 '-Wno-deprecated', # From Qt, via debugger (older C
lang). | 465 '-Wno-deprecated', # From Qt, via debugger (older C
lang). |
463 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). | 466 '-Wno-deprecated-register', # From Qt, via debugger (newer C
lang). |
464 ], | 467 ], |
465 'cflags': [ | 468 'cflags': [ |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 671 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
669 }, | 672 }, |
670 }], | 673 }], |
671 | 674 |
672 ], # end 'conditions' | 675 ], # end 'conditions' |
673 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 676 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
674 'xcode_settings': { | 677 'xcode_settings': { |
675 'SYMROOT': '<(DEPTH)/xcodebuild', | 678 'SYMROOT': '<(DEPTH)/xcodebuild', |
676 }, | 679 }, |
677 } | 680 } |
OLD | NEW |