Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: skia/skia.gyp

Issue 14065005: Introduce arm_version to allow building for armv5, v6 or v7. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update gyp defaults Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 }], 333 }],
334 [ 'OS != "mac"', { 334 [ 'OS != "mac"', {
335 'sources/': [ 335 'sources/': [
336 ['exclude', '_mac\\.(cc|cpp|mm?)$'], 336 ['exclude', '_mac\\.(cc|cpp|mm?)$'],
337 ['exclude', '/mac/'] 337 ['exclude', '/mac/']
338 ], 338 ],
339 }], 339 }],
340 [ 'OS != "win"', { 340 [ 'OS != "win"', {
341 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], 341 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
342 }], 342 }],
343 [ 'armv7 == 1', { 343 [ 'arm_version == 7', {
344 'defines': [ 344 'defines': [
345 '__ARM_ARCH__=7', 345 '__ARM_ARCH__=7',
Torne 2013/04/11 13:04:22 We could just define __ARM_ARCH__=<(arm_version) ?
Fredrik Öhrn 2013/04/11 13:42:19 Sure, but it looks like it's not used in skia. Sha
Torne 2013/04/11 13:55:00 Probably this can be removed then, yes.
346 ], 346 ],
347 }], 347 }],
348 [ 'armv7 == 1 and arm_neon == 1', { 348 [ 'arm_version >= 7 and arm_neon == 1', {
349 'defines': [ 349 'defines': [
350 '__ARM_HAVE_NEON', 350 '__ARM_HAVE_NEON',
351 ], 351 ],
352 }], 352 }],
353 [ 'target_arch == "arm" or target_arch == "mipsel"', { 353 [ 'target_arch == "arm" or target_arch == "mipsel"', {
354 'sources!': [ 354 'sources!': [
355 '../third_party/skia/src/opts/opts_check_SSE2.cpp' 355 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
356 ], 356 ],
357 }], 357 }],
358 [ 'use_glib == 1', { 358 [ 'use_glib == 1', {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 # x86 Android doesn't support SSSE3 instructions. 664 # x86 Android doesn't support SSSE3 instructions.
665 [ 'OS != "android"', { 665 [ 'OS != "android"', {
666 'dependencies': [ 666 'dependencies': [
667 'skia_opts_ssse3', 667 'skia_opts_ssse3',
668 ], 668 ],
669 }], 669 }],
670 ], 670 ],
671 }], 671 }],
672 [ 'target_arch == "arm"', { 672 [ 'target_arch == "arm"', {
673 'conditions': [ 673 'conditions': [
674 [ 'armv7 == 1', { 674 [ 'arm_version == 7', {
675 'defines': [ 675 'defines': [
676 '__ARM_ARCH__=7', 676 '__ARM_ARCH__=7',
677 ], 677 ],
678 }], 678 }],
679 [ 'armv7 == 1 and arm_neon == 1', { 679 [ 'arm_version >= 7 and arm_neon == 1', {
680 'defines': [ 680 'defines': [
681 '__ARM_HAVE_NEON', 681 '__ARM_HAVE_NEON',
682 ], 682 ],
683 'cflags': [ 683 'cflags': [
684 # The neon assembly contains conditional instructions which 684 # The neon assembly contains conditional instructions which
685 # aren't enclosed in an IT block. The assembler complains 685 # aren't enclosed in an IT block. The assembler complains
686 # without this option. 686 # without this option.
687 # See #86592. 687 # See #86592.
688 '-Wa,-mimplicit-it=always', 688 '-Wa,-mimplicit-it=always',
689 ], 689 ],
690 }], 690 }],
691 ], 691 ],
692 # The assembly uses the frame pointer register (r7 in Thumb/r11 in 692 # The assembly uses the frame pointer register (r7 in Thumb/r11 in
693 # ARM), the compiler doesn't like that. Explicitly remove the 693 # ARM), the compiler doesn't like that. Explicitly remove the
694 # -fno-omit-frame-pointer flag for Android, as that gets added to all 694 # -fno-omit-frame-pointer flag for Android, as that gets added to all
695 # targets via common.gypi. 695 # targets via common.gypi.
696 'cflags!': [ 696 'cflags!': [
697 '-fno-omit-frame-pointer', 697 '-fno-omit-frame-pointer',
698 '-marm', 698 '-marm',
699 '-mapcs-frame', 699 '-mapcs-frame',
700 ], 700 ],
701 'cflags': [ 701 'cflags': [
702 '-fomit-frame-pointer', 702 '-fomit-frame-pointer',
703 ], 703 ],
704 'sources': [ 704 'sources': [
705 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp', 705 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp',
706 ], 706 ],
707 }], 707 }],
708 [ 'armv7 == 1 and arm_neon == 0', { 708 [ 'target_arch == "arm" and (arm_version < 7 or arm_neon == 0)', {
709 'sources': [ 709 'sources': [
710 '../third_party/skia/src/opts/memset.arm.S', 710 '../third_party/skia/src/opts/memset.arm.S',
711 ], 711 ],
712 }], 712 }],
713 [ 'armv7 == 1 and arm_neon == 1', { 713 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', {
714 'sources': [ 714 'sources': [
715 '../third_party/skia/src/opts/memset16_neon.S', 715 '../third_party/skia/src/opts/memset16_neon.S',
716 '../third_party/skia/src/opts/memset32_neon.S', 716 '../third_party/skia/src/opts/memset32_neon.S',
717 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp', 717 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp',
718 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp ', 718 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp ',
719 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h' , 719 '../third_party/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h' ,
720 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h ', 720 '../third_party/skia/src/opts/SkBitmapProcState_matrix_repeat_neon.h ',
721 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp', 721 '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp',
722 ], 722 ],
723 }], 723 }],
724 [ 'target_arch == "arm" and armv7 == 0', { 724 [ 'target_arch == "arm" and arm_version < 6', {
725 'sources': [ 725 'sources': [
726 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', 726 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
727 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', 727 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
728 ], 728 ],
729 }], 729 }],
730 [ 'target_arch == "arm" and armv7 == 1', { 730 [ 'target_arch == "arm" and arm_version >= 6', {
731 'sources': [ 731 'sources': [
732 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', 732 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
733 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', 733 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h',
734 '../third_party/skia/src/opts/opts_check_arm.cpp', 734 '../third_party/skia/src/opts/opts_check_arm.cpp',
735 ], 735 ],
736 }], 736 }],
737 [ 'target_arch == "mipsel"',{ 737 [ 'target_arch == "mipsel"',{
738 'cflags': [ 738 'cflags': [
739 '-fomit-frame-pointer', 739 '-fomit-frame-pointer',
740 ], 740 ],
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 'sources': [ 831 'sources': [
832 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', 832 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
833 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', 833 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
834 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', 834 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
835 ], 835 ],
836 }, 836 },
837 ], 837 ],
838 }], 838 }],
839 ], 839 ],
840 } 840 }
OLDNEW
« build/common.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698