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 # These flags that are on by default for only the android |
| 661 # toolchain and no other platforms. |
| 662 '-Wno-tautological-compare', |
| 663 '-Wno-unused-command-line-argument', |
| 664 ], |
| 665 }], |
658 ], | 666 ], |
659 }, | 667 }, |
660 ], | 668 ], |
661 | 669 |
662 [ 'skia_moz2d', { | 670 [ 'skia_moz2d', { |
663 'defines': [ | 671 'defines': [ |
664 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d | 672 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d |
665 ], | 673 ], |
666 }], | 674 }], |
667 | 675 |
668 [ 'skia_command_buffer and skia_os == "linux"', { | 676 [ 'skia_command_buffer and skia_os == "linux"', { |
669 'ldflags': [ | 677 'ldflags': [ |
670 '-Wl,-rpath,\$$ORIGIN/lib', | 678 '-Wl,-rpath,\$$ORIGIN/lib', |
671 ], | 679 ], |
672 }], | 680 }], |
673 | 681 |
674 [ 'skia_command_buffer and skia_os == "mac"', { | 682 [ 'skia_command_buffer and skia_os == "mac"', { |
675 'xcode_settings': { | 683 'xcode_settings': { |
676 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 684 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
677 }, | 685 }, |
678 }], | 686 }], |
679 | 687 |
680 ], # end 'conditions' | 688 ], # end 'conditions' |
681 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 689 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
682 'xcode_settings': { | 690 'xcode_settings': { |
683 'SYMROOT': '<(DEPTH)/xcodebuild', | 691 'SYMROOT': '<(DEPTH)/xcodebuild', |
684 }, | 692 }, |
685 } | 693 } |
OLD | NEW |