OLD | NEW |
---|---|
1 # Gyp file for opts projects | 1 # Gyp file for opts projects |
2 { | 2 { |
3 'targets': [ | 3 'targets': [ |
4 # Due to an unfortunate intersection of lameness between gcc and gyp, | 4 # Due to an unfortunate intersection of lameness between gcc and gyp, |
5 # we have to build the *_SSE2.cpp files in a separate target. The | 5 # we have to build the *_SSE2.cpp files in a separate target. The |
6 # gcc lameness is that, in order to compile SSE2 intrinsics code, it | 6 # gcc lameness is that, in order to compile SSE2 intrinsics code, it |
7 # must be passed the -msse2 flag. However, with this flag, it may | 7 # must be passed the -msse2 flag. However, with this flag, it may |
8 # emit SSE2 instructions even for scalar code, such as the CPUID | 8 # emit SSE2 instructions even for scalar code, such as the CPUID |
9 # test used to test for the presence of SSE2. So that, and all other | 9 # test used to test for the presence of SSE2. So that, and all other |
10 # code must be compiled *without* -msse2. The gyp lameness is that it | 10 # code must be compiled *without* -msse2. The gyp lameness is that it |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 [ 'skia_os == "ios"', { | 93 [ 'skia_os == "ios"', { |
94 'sources!': [ | 94 'sources!': [ |
95 # these fail to compile under xcode for ios | 95 # these fail to compile under xcode for ios |
96 '../src/opts/memset.arm.S', | 96 '../src/opts/memset.arm.S', |
97 '../src/opts/SkBitmapProcState_opts_arm.cpp', | 97 '../src/opts/SkBitmapProcState_opts_arm.cpp', |
98 '../src/opts/SkBlitRow_opts_arm.cpp', | 98 '../src/opts/SkBlitRow_opts_arm.cpp', |
99 ], | 99 ], |
100 }], | 100 }], |
101 ], | 101 ], |
102 }], | 102 }], |
103 [ '(skia_arch_type == "mips") or (skia_arch_type == "arm" and arm_versio n < 7) \ | 103 [ 'skia_arch_type == "mips"', { |
104 'cflags!': [ | |
105 ], | |
106 'sources': [ | |
107 '../src/opts/SkBitmapProcState_opts_none.cpp', | |
108 '../src/opts/SkBlitMask_opts_none.cpp', | |
109 '../src/opts/SkBlurImage_opts_none.cpp', | |
110 '../src/opts/SkMorphology_opts_none.cpp', | |
111 '../src/opts/SkUtils_opts_none.cpp', | |
112 '../src/opts/SkXfermode_opts_none.cpp', | |
113 ], | |
114 'conditions': [ | |
djsollen
2014/06/10 15:46:07
I looks like you want this to work for all mips32r
djordje
2014/06/10 16:39:17
no, it can not be done in this way since there is
djsollen
2014/06/10 17:49:56
Gotcha. You should still update this to look like
| |
115 [ '(mips_dsp == 1 or mips_dsp == 2) \ | |
116 and (mips_arch_variant == "mips32r2")', { | |
117 'dependencies': [ | |
118 'opts_dsp', | |
119 ] | |
120 }], | |
121 [ '(mips_dsp != 1 and mips_dsp != 2) \ | |
122 or (mips_arch_variant != "mips32r2")', { | |
123 'sources': [ | |
124 '../src/opts/SkBlitRow_opts_none.cpp', | |
125 ] | |
126 }], | |
127 ], | |
128 }], | |
129 [ '(skia_arch_type == "arm" and arm_version < 7) \ | |
104 or (skia_os == "ios") \ | 130 or (skia_os == "ios") \ |
105 or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "m ips", "arm64"])', { | 131 or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "m ips", "arm64"])', { |
106 'sources': [ | 132 'sources': [ |
107 '../src/opts/SkBitmapProcState_opts_none.cpp', | 133 '../src/opts/SkBitmapProcState_opts_none.cpp', |
108 '../src/opts/SkBlitMask_opts_none.cpp', | 134 '../src/opts/SkBlitMask_opts_none.cpp', |
109 '../src/opts/SkBlitRow_opts_none.cpp', | 135 '../src/opts/SkBlitRow_opts_none.cpp', |
110 '../src/opts/SkBlurImage_opts_none.cpp', | 136 '../src/opts/SkBlurImage_opts_none.cpp', |
111 '../src/opts/SkMorphology_opts_none.cpp', | 137 '../src/opts/SkMorphology_opts_none.cpp', |
112 '../src/opts/SkUtils_opts_none.cpp', | 138 '../src/opts/SkUtils_opts_none.cpp', |
113 '../src/opts/SkXfermode_opts_none.cpp', | 139 '../src/opts/SkXfermode_opts_none.cpp', |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 '../src/opts/SkBitmapProcState_arm_neon.cpp', | 239 '../src/opts/SkBitmapProcState_arm_neon.cpp', |
214 '../src/opts/SkBitmapProcState_matrixProcs_neon.cpp', | 240 '../src/opts/SkBitmapProcState_matrixProcs_neon.cpp', |
215 '../src/opts/SkBitmapProcState_matrix_neon.h', | 241 '../src/opts/SkBitmapProcState_matrix_neon.h', |
216 '../src/opts/SkBlitMask_opts_arm_neon.cpp', | 242 '../src/opts/SkBlitMask_opts_arm_neon.cpp', |
217 '../src/opts/SkBlitRow_opts_arm_neon.cpp', | 243 '../src/opts/SkBlitRow_opts_arm_neon.cpp', |
218 '../src/opts/SkBlurImage_opts_neon.cpp', | 244 '../src/opts/SkBlurImage_opts_neon.cpp', |
219 '../src/opts/SkMorphology_opts_neon.cpp', | 245 '../src/opts/SkMorphology_opts_neon.cpp', |
220 '../src/opts/SkXfermode_opts_arm_neon.cpp', | 246 '../src/opts/SkXfermode_opts_arm_neon.cpp', |
221 ], | 247 ], |
222 }, | 248 }, |
249 { | |
250 'target_name': 'opts_dsp', | |
djsollen
2014/06/10 17:49:56
do you intend to make using the dsp optimized code
djordje
2014/06/10 18:30:18
there will be no runtime detection. this part will
| |
251 'product_name': 'skia_opts_dsp', | |
252 'type': 'static_library', | |
253 'standalone_static_library': 1, | |
254 'dependencies': [ | |
255 'core.gyp:*', | |
256 ], | |
257 'include_dirs': [ | |
258 '../src/core', | |
259 '../src/opts', | |
260 ], | |
261 'cflags!': [ | |
djsollen
2014/06/10 15:46:07
remove the empty blocks
| |
262 ], | |
263 'ldflags': [ | |
264 ], | |
265 'sources': [ | |
266 '../src/opts/SkBlitRow_opts_mips_dsp.cpp', | |
267 ], | |
268 }, | |
223 ], | 269 ], |
224 } | 270 } |
OLD | NEW |