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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 }], | 336 }], |
337 [ 'OS != "mac"', { | 337 [ 'OS != "mac"', { |
338 'sources/': [ | 338 'sources/': [ |
339 ['exclude', '_mac\\.(cc|cpp|mm?)$'], | 339 ['exclude', '_mac\\.(cc|cpp|mm?)$'], |
340 ['exclude', '/mac/'] | 340 ['exclude', '/mac/'] |
341 ], | 341 ], |
342 }], | 342 }], |
343 [ 'OS != "win"', { | 343 [ 'OS != "win"', { |
344 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], | 344 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], |
345 }], | 345 }], |
346 [ 'armv7 == 1', { | 346 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { |
347 'defines': [ | |
348 '__ARM_ARCH__=7', | |
349 ], | |
350 }], | |
351 [ 'armv7 == 1 and arm_neon == 1', { | |
352 'defines': [ | 347 'defines': [ |
353 '__ARM_HAVE_NEON', | 348 '__ARM_HAVE_NEON', |
354 ], | 349 ], |
355 }], | 350 }], |
356 [ 'target_arch == "arm" or target_arch == "mipsel"', { | 351 [ 'target_arch == "arm" or target_arch == "mipsel"', { |
357 'sources!': [ | 352 'sources!': [ |
358 '../third_party/skia/src/opts/opts_check_SSE2.cpp' | 353 '../third_party/skia/src/opts/opts_check_SSE2.cpp' |
359 ], | 354 ], |
360 }], | 355 }], |
361 [ 'use_glib == 1', { | 356 [ 'use_glib == 1', { |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 # x86 Android doesn't support SSSE3 instructions. | 662 # x86 Android doesn't support SSSE3 instructions. |
668 [ 'OS != "android"', { | 663 [ 'OS != "android"', { |
669 'dependencies': [ | 664 'dependencies': [ |
670 'skia_opts_ssse3', | 665 'skia_opts_ssse3', |
671 ], | 666 ], |
672 }], | 667 }], |
673 ], | 668 ], |
674 }], | 669 }], |
675 [ 'target_arch == "arm"', { | 670 [ 'target_arch == "arm"', { |
676 'conditions': [ | 671 'conditions': [ |
677 [ 'armv7 == 1', { | 672 [ 'arm_version >= 7 and arm_neon == 1', { |
678 'defines': [ | |
679 '__ARM_ARCH__=7', | |
680 ], | |
681 }], | |
682 [ 'armv7 == 1 and arm_neon == 1', { | |
683 'defines': [ | 673 'defines': [ |
684 '__ARM_HAVE_NEON', | 674 '__ARM_HAVE_NEON', |
685 ], | 675 ], |
686 'cflags': [ | 676 'cflags': [ |
687 # The neon assembly contains conditional instructions which | 677 # The neon assembly contains conditional instructions which |
688 # aren't enclosed in an IT block. The assembler complains | 678 # aren't enclosed in an IT block. The assembler complains |
689 # without this option. | 679 # without this option. |
690 # See #86592. | 680 # See #86592. |
691 '-Wa,-mimplicit-it=always', | 681 '-Wa,-mimplicit-it=always', |
692 ], | 682 ], |
693 }], | 683 }], |
694 ], | 684 ], |
695 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 685 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
696 # ARM), the compiler doesn't like that. Explicitly remove the | 686 # ARM), the compiler doesn't like that. Explicitly remove the |
697 # -fno-omit-frame-pointer flag for Android, as that gets added to all | 687 # -fno-omit-frame-pointer flag for Android, as that gets added to all |
698 # targets via common.gypi. | 688 # targets via common.gypi. |
699 'cflags!': [ | 689 'cflags!': [ |
700 '-fno-omit-frame-pointer', | 690 '-fno-omit-frame-pointer', |
701 '-marm', | 691 '-marm', |
702 '-mapcs-frame', | 692 '-mapcs-frame', |
703 ], | 693 ], |
704 'cflags': [ | 694 'cflags': [ |
705 '-fomit-frame-pointer', | 695 '-fomit-frame-pointer', |
706 ], | 696 ], |
707 'sources': [ | 697 'sources': [ |
708 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp', | 698 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp', |
709 ], | 699 ], |
710 }], | 700 }], |
711 [ 'armv7 == 1 and arm_neon == 0', { | 701 [ 'target_arch == "arm" and (arm_version < 7 or arm_neon == 0)', { |
712 'sources': [ | 702 'sources': [ |
713 '../third_party/skia/src/opts/memset.arm.S', | 703 '../third_party/skia/src/opts/memset.arm.S', |
714 ], | 704 ], |
715 }], | 705 }], |
716 [ 'armv7 == 1 and arm_neon == 1', { | 706 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { |
717 'sources': [ | 707 'sources': [ |
718 '../third_party/skia/src/opts/memset16_neon.S', | 708 '../third_party/skia/src/opts/memset16_neon.S', |
719 '../third_party/skia/src/opts/memset32_neon.S', | 709 '../third_party/skia/src/opts/memset32_neon.S', |
720 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp', | 710 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp', |
721 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp
', | 711 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp
', |
722 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h'
, | 712 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h'
, |
723 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h
', | 713 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h
', |
724 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp', | 714 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp', |
725 ], | 715 ], |
726 }], | 716 }], |
727 [ 'target_arch == "arm" and armv7 == 0', { | 717 [ 'target_arch == "arm" and arm_version < 6', { |
728 'sources': [ | 718 'sources': [ |
729 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 719 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
730 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 720 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
731 ], | 721 ], |
732 }], | 722 }], |
733 [ 'target_arch == "arm" and armv7 == 1', { | 723 [ 'target_arch == "arm" and arm_version >= 6', { |
734 'sources': [ | 724 'sources': [ |
735 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', | 725 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', |
736 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', | 726 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', |
737 '../third_party/skia/src/opts/opts_check_arm.cpp', | 727 '../third_party/skia/src/opts/opts_check_arm.cpp', |
738 ], | 728 ], |
739 }], | 729 }], |
740 [ 'target_arch == "mipsel"',{ | 730 [ 'target_arch == "mipsel"',{ |
741 'cflags': [ | 731 'cflags': [ |
742 '-fomit-frame-pointer', | 732 '-fomit-frame-pointer', |
743 ], | 733 ], |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 'sources': [ | 824 'sources': [ |
835 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 825 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
836 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 826 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
837 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 827 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
838 ], | 828 ], |
839 }, | 829 }, |
840 ], | 830 ], |
841 }], | 831 }], |
842 ], | 832 ], |
843 } | 833 } |
OLD | NEW |