OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'skia', | 8 'target_name': 'skia', |
9 'type': '<(component)', | 9 'type': '<(component)', |
10 'variables': { | 10 'variables': { |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 [ 'armv7 == 1', { | 346 [ 'armv7 == 1', { |
347 'defines': [ | 347 'defines': [ |
348 '__ARM_ARCH__=7', | 348 '__ARM_ARCH__=7', |
349 ], | 349 ], |
350 }], | 350 }], |
351 [ 'armv7 == 1 and arm_neon == 1', { | 351 [ 'armv7 == 1 and arm_neon == 1', { |
352 'defines': [ | 352 'defines': [ |
353 '__ARM_HAVE_NEON', | 353 '__ARM_HAVE_NEON', |
354 ], | 354 ], |
355 }], | 355 }], |
356 [ 'target_arch == "arm"', { | 356 [ 'target_arch == "arm" or target_arch == "mipsel"', { |
357 'sources!': [ | 357 'sources!': [ |
358 '../third_party/skia/src/opts/opts_check_SSE2.cpp' | 358 '../third_party/skia/src/opts/opts_check_SSE2.cpp' |
359 ], | 359 ], |
360 }], | 360 }], |
361 [ 'use_glib == 1', { | 361 [ 'use_glib == 1', { |
362 'dependencies': [ | 362 'dependencies': [ |
363 '../build/linux/system.gyp:fontconfig', | 363 '../build/linux/system.gyp:fontconfig', |
364 '../build/linux/system.gyp:freetype2', | 364 '../build/linux/system.gyp:freetype2', |
365 '../build/linux/system.gyp:pangocairo', | 365 '../build/linux/system.gyp:pangocairo', |
366 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz', | 366 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz', |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 '..', | 658 '..', |
659 'config', | 659 'config', |
660 '../third_party/skia/include/config', | 660 '../third_party/skia/include/config', |
661 '../third_party/skia/include/core', | 661 '../third_party/skia/include/core', |
662 '../third_party/skia/include/effects', | 662 '../third_party/skia/include/effects', |
663 '../third_party/skia/include/images', | 663 '../third_party/skia/include/images', |
664 '../third_party/skia/include/utils', | 664 '../third_party/skia/include/utils', |
665 '../third_party/skia/src/core', | 665 '../third_party/skia/src/core', |
666 ], | 666 ], |
667 'conditions': [ | 667 'conditions': [ |
668 [ 'os_posix == 1 and OS != "mac" and OS != "android" and target_arch !=
"arm"', { | 668 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ |
| 669 target_arch != "arm" and target_arch != "mipsel"', { |
669 'cflags': [ | 670 'cflags': [ |
670 '-msse2', | 671 '-msse2', |
671 ], | 672 ], |
672 }], | 673 }], |
673 [ 'OS == "android"', { | 674 [ 'OS == "android"', { |
674 'defines': [ | 675 'defines': [ |
675 'SK_BUILD_FOR_ANDROID_NDK', | 676 'SK_BUILD_FOR_ANDROID_NDK', |
676 ], | 677 ], |
677 }], | 678 }], |
678 [ 'target_arch != "arm"', { | 679 [ 'target_arch != "arm" and target_arch != "mipsel"', { |
679 'sources': [ | 680 'sources': [ |
680 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 681 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
681 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 682 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
682 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 683 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
683 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 684 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
684 ], | 685 ], |
685 'conditions': [ | 686 'conditions': [ |
686 # x86 Android doesn't support SSSE3 instructions. | 687 # x86 Android doesn't support SSSE3 instructions. |
687 [ 'OS != "android"', { | 688 [ 'OS != "android"', { |
688 'dependencies': [ | 689 'dependencies': [ |
689 'skia_opts_ssse3', | 690 'skia_opts_ssse3', |
690 ], | 691 ], |
691 }], | 692 }], |
692 ], | 693 ], |
693 }, | 694 }], |
694 { # arm | 695 [ 'target_arch == "arm"', { |
695 'conditions': [ | 696 'conditions': [ |
696 [ 'armv7 == 1', { | 697 [ 'armv7 == 1', { |
697 'defines': [ | 698 'defines': [ |
698 '__ARM_ARCH__=7', | 699 '__ARM_ARCH__=7', |
699 ], | 700 ], |
700 }], | 701 }], |
701 [ 'armv7 == 1 and arm_neon == 1', { | 702 [ 'armv7 == 1 and arm_neon == 1', { |
702 'defines': [ | 703 'defines': [ |
703 '__ARM_HAVE_NEON', | 704 '__ARM_HAVE_NEON', |
704 ], | 705 ], |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 ], | 746 ], |
746 }], | 747 }], |
747 [ 'target_arch == "arm" and armv7 != 1', { | 748 [ 'target_arch == "arm" and armv7 != 1', { |
748 'sources': [ | 749 'sources': [ |
749 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 750 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
750 ], | 751 ], |
751 'sources!': [ | 752 'sources!': [ |
752 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', | 753 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', |
753 ], | 754 ], |
754 }], | 755 }], |
| 756 [ 'target_arch == "mipsel"',{ |
| 757 'cflags': [ |
| 758 '-fomit-frame-pointer', |
| 759 ], |
| 760 'sources': [ |
| 761 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
| 762 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 763 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 764 ], |
| 765 }], |
755 ], | 766 ], |
756 }, | 767 }, |
757 # For the same lame reasons as what is done for skia_opts, we have to | 768 # For the same lame reasons as what is done for skia_opts, we have to |
758 # create another target specifically for SSSE3 code as we would not want | 769 # create another target specifically for SSSE3 code as we would not want |
759 # to compile the SSE2 code with -mssse3 which would potentially allow | 770 # to compile the SSE2 code with -mssse3 which would potentially allow |
760 # gcc to generate SSSE3 code. | 771 # gcc to generate SSSE3 code. |
761 { | 772 { |
762 'target_name': 'skia_opts_ssse3', | 773 'target_name': 'skia_opts_ssse3', |
763 'type': 'static_library', | 774 'type': 'static_library', |
764 'variables': { | 775 'variables': { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 'sources': [ | 849 'sources': [ |
839 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 850 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
840 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 851 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
841 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 852 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
842 ], | 853 ], |
843 }, | 854 }, |
844 ], | 855 ], |
845 }], | 856 }], |
846 ], | 857 ], |
847 } | 858 } |
OLD | NEW |