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

Unified Diff: gyp/opts.gyp

Issue 1309253002: Add build targets for advanced Intel instruction sets (1.5 of 3) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 3 -> avx, 5 -> avx2, 4 -> none 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 | no next file » | 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 5c83a4300ae13636a3a82ef1aa225919e902e381..396a37e3ef3f4ebcdd8419a775dc616d6191a99e 100644
--- a/gyp/opts.gyp
+++ b/gyp/opts.gyp
@@ -96,12 +96,8 @@
],
'sources': [ '<@(ssse3_sources)' ],
'conditions': [
- [ 'skia_os == "win"', {
- 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ],
- }],
- [ 'not skia_android_framework', {
- 'cflags': [ '-mssse3' ],
- }],
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ] }],
+ [ 'not skia_android_framework', { 'cflags': [ '-mssse3' ] }],
],
},
{
@@ -116,16 +112,10 @@
'../src/utils',
],
'sources': [ '<@(sse41_sources)' ],
+ 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' },
'conditions': [
- [ 'skia_os == "win"', {
- 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ],
- }],
- [ 'not skia_android_framework', {
- 'cflags': [ '-msse4.1' ],
- }],
- [ 'skia_os == "mac"', {
- 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' },
- }],
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ] }],
+ [ 'not skia_android_framework', { 'cflags': [ '-msse4.1' ] }],
],
},
{
@@ -140,10 +130,10 @@
'../src/utils',
],
'sources': [ '<@(sse42_sources)' ],
+ 'xcode_settings': { 'GCC_ENABLE_SSE42_EXTENSIONS': 'YES' },
'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' }, }],
+ [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=42' ] }],
+ [ 'not skia_android_framework', { 'cflags': [ '-msse4.2' ] }],
],
},
{
@@ -158,10 +148,10 @@
'../src/utils',
],
'sources': [ '<@(avx_sources)' ],
+ 'msvs_settings': { 'VCCLCompilerTool': { 'EnableEnhancedInstructionSet': '3' } },
+ 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ] },
'conditions': [
- [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=51' ], }],
- [ 'not skia_android_framework', { 'cflags': [ '-mavx' ], }],
- [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ] }, }],
+ [ 'not skia_android_framework', { 'cflags': [ '-mavx' ] }],
],
},
{
@@ -176,10 +166,10 @@
'../src/utils',
],
'sources': [ '<@(avx2_sources)' ],
+ 'msvs_settings': { 'VCCLCompilerTool': { 'EnableEnhancedInstructionSet': '5' } },
+ 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] },
'conditions': [
- [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=52' ], }],
- [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ], }],
- [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] }, }],
+ [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ] }],
],
},
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698