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

Unified Diff: gyp/opts.gyp

Issue 1290423007: Add build targets for advanced Intel instruction sets (1 of 3). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp,preconfig Created 5 years, 4 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 | « no previous file | 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 d05d456d29ac3f8daeaebd0c61b359fe17171fa9..5c83a4300ae13636a3a82ef1aa225919e902e381 100644
--- a/gyp/opts.gyp
+++ b/gyp/opts.gyp
@@ -34,7 +34,7 @@
'conditions': [
[ '"x86" in skia_arch_type and skia_os != "ios"', {
'cflags': [ '-msse2' ],
- 'dependencies': [ 'opts_ssse3', 'opts_sse41' ],
+ 'dependencies': [ 'opts_ssse3', 'opts_sse41', 'opts_sse42', 'opts_avx', 'opts_avx2' ],
'sources': [ '<@(sse2_sources)' ],
}],
@@ -129,6 +129,60 @@
],
},
{
+ 'target_name': 'opts_sse42',
+ 'product_name': 'skia_opts_sse42',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'include_dirs': [
+ '../include/private',
+ '../src/core',
+ '../src/utils',
+ ],
+ 'sources': [ '<@(sse42_sources)' ],
+ 'conditions': [
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=42' ], }],
+ [ 'not skia_android_framework', { 'cflags': [ '-msse4.2' ], }],
+ [ 'skia_os == "mac"', { 'xcode_settings': { 'GCC_ENABLE_SSE42_EXTENSIONS': 'YES' }, }],
+ ],
+ },
+ {
+ 'target_name': 'opts_avx',
+ 'product_name': 'skia_opts_avx',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'include_dirs': [
+ '../include/private',
+ '../src/core',
+ '../src/utils',
+ ],
+ 'sources': [ '<@(avx_sources)' ],
+ 'conditions': [
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=51' ], }],
+ [ 'not skia_android_framework', { 'cflags': [ '-mavx' ], }],
+ [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ] }, }],
+ ],
+ },
+ {
+ 'target_name': 'opts_avx2',
+ 'product_name': 'skia_opts_avx2',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'include_dirs': [
+ '../include/private',
+ '../src/core',
+ '../src/utils',
+ ],
+ 'sources': [ '<@(avx2_sources)' ],
+ 'conditions': [
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=52' ], }],
+ [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ], }],
+ [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] }, }],
+ ],
+ },
+ {
'target_name': 'opts_neon',
'product_name': 'skia_opts_neon',
'type': 'static_library',
« no previous file with comments | « no previous file | gyp/opts.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698