Index: gyp/opts.gyp |
diff --git a/gyp/opts.gyp b/gyp/opts.gyp |
index dc5ff5c9e926e9305ebcdbef4afeccbf29d9755c..c06eaf80fd173cad60032cecd7cb46ed3c45881c 100644 |
--- a/gyp/opts.gyp |
+++ b/gyp/opts.gyp |
@@ -100,7 +100,33 @@ |
}], |
], |
}], |
- [ '(skia_arch_type == "mips") or (skia_arch_type == "arm" and arm_version < 7) \ |
+ [ 'skia_arch_type == "mips"', { |
+ 'cflags!': [ |
+ ], |
+ 'sources': [ |
+ '../src/opts/SkBitmapProcState_opts_none.cpp', |
+ '../src/opts/SkBlitMask_opts_none.cpp', |
+ '../src/opts/SkBlurImage_opts_none.cpp', |
+ '../src/opts/SkMorphology_opts_none.cpp', |
+ '../src/opts/SkUtils_opts_none.cpp', |
+ '../src/opts/SkXfermode_opts_none.cpp', |
+ ], |
+ '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
|
+ [ '(mips_dsp == 1 or mips_dsp == 2) \ |
+ and (mips_arch_variant == "mips32r2")', { |
+ 'dependencies': [ |
+ 'opts_dsp', |
+ ] |
+ }], |
+ [ '(mips_dsp != 1 and mips_dsp != 2) \ |
+ or (mips_arch_variant != "mips32r2")', { |
+ 'sources': [ |
+ '../src/opts/SkBlitRow_opts_none.cpp', |
+ ] |
+ }], |
+ ], |
+ }], |
+ [ '(skia_arch_type == "arm" and arm_version < 7) \ |
or (skia_os == "ios") \ |
or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "mips", "arm64"])', { |
'sources': [ |
@@ -220,5 +246,25 @@ |
'../src/opts/SkXfermode_opts_arm_neon.cpp', |
], |
}, |
+ { |
+ '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
|
+ 'product_name': 'skia_opts_dsp', |
+ 'type': 'static_library', |
+ 'standalone_static_library': 1, |
+ 'dependencies': [ |
+ 'core.gyp:*', |
+ ], |
+ 'include_dirs': [ |
+ '../src/core', |
+ '../src/opts', |
+ ], |
+ 'cflags!': [ |
djsollen
2014/06/10 15:46:07
remove the empty blocks
|
+ ], |
+ 'ldflags': [ |
+ ], |
+ 'sources': [ |
+ '../src/opts/SkBlitRow_opts_mips_dsp.cpp', |
+ ], |
+ }, |
], |
} |