OLD | NEW |
1 # conditions used in both common.gypi and skia.gyp in chromium | 1 # conditions used in both common.gypi and skia.gyp in chromium |
2 # | 2 # |
3 { | 3 { |
4 'defines': [ | 4 'defines': [ |
5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
6 'SK_SUPPORT_GPU=<(skia_gpu)', | 6 'SK_SUPPORT_GPU=<(skia_gpu)', |
7 'SK_SUPPORT_OPENCL=<(skia_opencl)', | 7 'SK_SUPPORT_OPENCL=<(skia_opencl)', |
8 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', | 8 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', |
9 ], | 9 ], |
10 'conditions' : [ | 10 'conditions' : [ |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 ], | 220 ], |
221 'cflags_cc': [ | 221 'cflags_cc': [ |
222 '-std=c++11', | 222 '-std=c++11', |
223 '-fno-rtti', | 223 '-fno-rtti', |
224 '-Wnon-virtual-dtor', | 224 '-Wnon-virtual-dtor', |
225 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i
s POD. | 225 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i
s POD. |
226 ], | 226 ], |
227 'conditions': [ | 227 'conditions': [ |
228 [ 'skia_os != "chromeos"', { | 228 [ 'skia_os != "chromeos"', { |
229 'conditions': [ | 229 'conditions': [ |
230 [ 'skia_arch_type == "x86_64"', { | 230 [ 'skia_arch_type == "x86_64" and not skia_android_framework', { |
231 'cflags': [ | 231 'cflags': [ |
232 '-m64', | 232 '-m64', |
233 ], | 233 ], |
234 'ldflags': [ | 234 'ldflags': [ |
235 '-m64', | 235 '-m64', |
236 ], | 236 ], |
237 }], | 237 }], |
238 [ 'skia_arch_type == "x86"', { | 238 [ 'skia_arch_type == "x86" and not skia_android_framework', { |
239 'cflags': [ | 239 'cflags': [ |
240 '-m32', | 240 '-m32', |
241 ], | 241 ], |
242 'ldflags': [ | 242 'ldflags': [ |
243 '-m32', | 243 '-m32', |
244 ], | 244 ], |
245 }], | 245 }], |
246 ], | 246 ], |
247 }], | 247 }], |
248 [ 'skia_warnings_as_errors', { | 248 [ 'skia_warnings_as_errors', { |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 ], | 629 ], |
630 'conditions': [ | 630 'conditions': [ |
631 [ '"x86" in skia_arch_type', { | 631 [ '"x86" in skia_arch_type', { |
632 'cflags': [ | 632 'cflags': [ |
633 '-mssse3', | 633 '-mssse3', |
634 ], | 634 ], |
635 }], | 635 }], |
636 [ 'skia_android_framework', { | 636 [ 'skia_android_framework', { |
637 'cflags!': [ | 637 'cflags!': [ |
638 '-fuse-ld=gold', | 638 '-fuse-ld=gold', |
| 639 '-mssse3', |
639 ], | 640 ], |
640 }], | 641 }], |
641 [ 'skia_shared_lib', { | 642 [ 'skia_shared_lib', { |
642 'defines': [ | 643 'defines': [ |
643 'SKIA_DLL', | 644 'SKIA_DLL', |
644 'SKIA_IMPLEMENTATION=1', | 645 'SKIA_IMPLEMENTATION=1', |
645 # Needed until we fix skbug.com/2440. | 646 # Needed until we fix skbug.com/2440. |
646 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', | 647 'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG', |
647 ], | 648 ], |
648 }], | 649 }], |
649 [ 'skia_profile_enabled == 1', { | 650 [ 'skia_profile_enabled == 1', { |
650 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], | 651 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
651 }], | 652 }], |
652 ], | 653 ], |
653 }, | 654 }, |
654 ], | 655 ], |
655 | 656 |
656 [ 'skia_moz2d', { | 657 [ 'skia_moz2d', { |
657 'defines': [ | 658 'defines': [ |
658 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d | 659 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d |
659 ], | 660 ], |
660 }], | 661 }], |
661 | 662 |
662 ], # end 'conditions' | 663 ], # end 'conditions' |
663 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 664 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
664 'xcode_settings': { | 665 'xcode_settings': { |
665 'SYMROOT': '<(DEPTH)/xcodebuild', | 666 'SYMROOT': '<(DEPTH)/xcodebuild', |
666 }, | 667 }, |
667 } | 668 } |
OLD | NEW |