| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 'standalone_static_library': 1, | 213 'standalone_static_library': 1, |
| 214 'dependencies': [ | 214 'dependencies': [ |
| 215 'core.gyp:*', | 215 'core.gyp:*', |
| 216 'effects.gyp:*' | 216 'effects.gyp:*' |
| 217 ], | 217 ], |
| 218 'include_dirs': [ | 218 'include_dirs': [ |
| 219 '../src/core', | 219 '../src/core', |
| 220 '../src/utils', | 220 '../src/utils', |
| 221 ], | 221 ], |
| 222 'sources': [ | 222 'sources': [ |
| 223 '../src/opts/SkBlitRow_opts_SSE4.cpp', | |
| 224 '../src/opts/SkBlurImage_opts_SSE4.cpp', | 223 '../src/opts/SkBlurImage_opts_SSE4.cpp', |
| 225 ], | 224 ], |
| 226 'conditions': [ | 225 'conditions': [ |
| 226 [ 'skia_arch_width == 64', { |
| 227 'sources': [ |
| 228 '../src/opts/SkBlitRow_opts_SSE4_x64_asm.S', |
| 229 ], |
| 230 }], |
| 231 [ 'skia_arch_width == 32', { |
| 232 'sources': [ |
| 233 '../src/opts/SkBlitRow_opts_SSE4_asm.S', |
| 234 ], |
| 235 }], |
| 227 [ 'skia_os == "win"', { | 236 [ 'skia_os == "win"', { |
| 228 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], | 237 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], |
| 229 }], | 238 }], |
| 230 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chrome
os", "android"] \ | 239 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chrome
os", "android"] \ |
| 231 and not skia_android_framework', { | 240 and not skia_android_framework', { |
| 232 'cflags': [ | 241 'cflags': [ |
| 233 '-msse4.1', | 242 '-msse4.1', |
| 234 ], | 243 ], |
| 235 }], | 244 }], |
| 236 [ 'skia_os == "mac"', { | 245 [ 'skia_os == "mac"', { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 '../src/opts/SkBlitMask_opts_arm_neon.cpp', | 299 '../src/opts/SkBlitMask_opts_arm_neon.cpp', |
| 291 '../src/opts/SkBlitRow_opts_arm_neon.cpp', | 300 '../src/opts/SkBlitRow_opts_arm_neon.cpp', |
| 292 '../src/opts/SkBlurImage_opts_neon.cpp', | 301 '../src/opts/SkBlurImage_opts_neon.cpp', |
| 293 '../src/opts/SkMorphology_opts_neon.cpp', | 302 '../src/opts/SkMorphology_opts_neon.cpp', |
| 294 '../src/opts/SkTextureCompression_opts_neon.cpp', | 303 '../src/opts/SkTextureCompression_opts_neon.cpp', |
| 295 '../src/opts/SkXfermode_opts_arm_neon.cpp', | 304 '../src/opts/SkXfermode_opts_arm_neon.cpp', |
| 296 ], | 305 ], |
| 297 }, | 306 }, |
| 298 ], | 307 ], |
| 299 } | 308 } |
| OLD | NEW |