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

Unified Diff: gyp/opts.gyp

Issue 915693002: GYP groudwork for half-float opts support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | gyp/opts.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/opts.gyp
diff --git a/gyp/opts.gyp b/gyp/opts.gyp
index 2fb1468f502ce8c05b1bb755033118d826c6b56d..bdf7866774e41b6f7e6da80cbd658db09aa2c581 100644
--- a/gyp/opts.gyp
+++ b/gyp/opts.gyp
@@ -28,7 +28,7 @@
'conditions': [
[ 'skia_arch_type == "x86" and skia_os != "ios"', {
'cflags': [ '-msse2' ],
- 'dependencies': [ 'opts_ssse3', 'opts_sse41' ],
+ 'dependencies': [ 'opts_ssse3', 'opts_sse41', 'opts_avx' ],
'sources': [ '<@(sse2_sources)' ],
}],
@@ -55,6 +55,7 @@
'cflags': [ '-fomit-frame-pointer' ],
'variables': { 'arm_neon_optional%': '<(arm_neon_optional>' },
'sources': [ '<@(armv7_sources)' ],
+ 'dependencies': [ 'opts_neon_fp16' ],
'conditions': [
[ 'arm_neon == 1 or arm_neon_optional == 1', {
'dependencies': [ 'opts_neon' ]
@@ -120,6 +121,26 @@
],
},
{
+ 'target_name': 'opts_avx',
+ 'product_name': 'skia_opts_avx',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'sources': [ '<@(avx_sources)' ],
+ 'conditions': [
+ [ 'skia_os == "win"', {
+ 'defines' : [ 'SK_CPU_SSE_LEVEL=50' ],
+ 'msvs_settings': { 'VCCLCompilerTool': { 'EnabledEnhancedInstructionSet': '3' } },
+ }],
+ [ 'not skia_android_framework', {
+ 'cflags': [ '-mavx' ],
+ }],
+ [ 'skia_os == "mac"', {
+ 'xcode_settings': { 'OTHER_CPLUSPLUSFLAGS': [ '-mavx' ] },
+ }],
+ ],
+ },
+ {
'target_name': 'opts_neon',
'product_name': 'skia_opts_neon',
'type': 'static_library',
@@ -153,5 +174,27 @@
'-Wl,--fix-cortex-a8',
],
},
+ {
+ 'target_name': 'opts_neon_fp16',
+ 'product_name': 'skia_opts_neon_fp16',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'include_dirs': [ '../src/core' ],
+ 'sources': [ '<@(neon_fp16_sources)' ],
+ 'conditions': [
+ [ 'not skia_android_framework', {
+ 'cflags': [
+ '-mfpu=neon-fp16',
+ '-mfp16-format=ieee',
+ '-fomit-frame-pointer',
+ ],
+ }],
+ ],
+ 'ldflags': [
+ '-march=armv7-a',
+ '-Wl,--fix-cortex-a8',
+ ],
+ },
],
}
« no previous file with comments | « DEPS ('k') | gyp/opts.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698