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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 'defines': [ | 648 'defines': [ |
649 'SKIA_DLL', | 649 'SKIA_DLL', |
650 'SKIA_IMPLEMENTATION=1', | 650 'SKIA_IMPLEMENTATION=1', |
651 # Needed until we fix https://bug.skia.org/2440 . | 651 # Needed until we fix https://bug.skia.org/2440 . |
652 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', | 652 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', |
653 ], | 653 ], |
654 }], | 654 }], |
655 [ 'skia_profile_enabled == 1', { | 655 [ 'skia_profile_enabled == 1', { |
656 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], | 656 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
657 }], | 657 }], |
| 658 [ 'skia_clang_build', { |
| 659 'cflags': [ |
| 660 '-Wno-unknown-warning-option', # Allows unknown warnings |
| 661 # These flags that are on by default for only the android |
| 662 # toolchain and no other platforms. |
| 663 '-Wno-tautological-compare', |
| 664 '-Wno-unused-command-line-argument', |
| 665 ], |
| 666 }], |
658 ], | 667 ], |
659 }, | 668 }, |
660 ], | 669 ], |
661 | 670 |
662 [ 'skia_moz2d', { | 671 [ 'skia_moz2d', { |
663 'defines': [ | 672 'defines': [ |
664 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d | 673 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d |
665 ], | 674 ], |
666 }], | 675 }], |
667 | 676 |
668 [ 'skia_command_buffer and skia_os == "linux"', { | 677 [ 'skia_command_buffer and skia_os == "linux"', { |
669 'ldflags': [ | 678 'ldflags': [ |
670 '-Wl,-rpath,\$$ORIGIN/lib', | 679 '-Wl,-rpath,\$$ORIGIN/lib', |
671 ], | 680 ], |
672 }], | 681 }], |
673 | 682 |
674 [ 'skia_command_buffer and skia_os == "mac"', { | 683 [ 'skia_command_buffer and skia_os == "mac"', { |
675 'xcode_settings': { | 684 'xcode_settings': { |
676 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 685 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
677 }, | 686 }, |
678 }], | 687 }], |
679 | 688 |
680 ], # end 'conditions' | 689 ], # end 'conditions' |
681 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 690 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
682 'xcode_settings': { | 691 'xcode_settings': { |
683 'SYMROOT': '<(DEPTH)/xcodebuild', | 692 'SYMROOT': '<(DEPTH)/xcodebuild', |
684 }, | 693 }, |
685 } | 694 } |
OLD | NEW |