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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 Google Inc. 1 # Copyright 2015 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # Gyp file for building opts target. 5 # Gyp file for building opts target.
6 { 6 {
7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome GYP/GN setup. 7 # Source lists live in opts.gypi. This makes it easier to maintain our Chrome GYP/GN setup.
8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i t was automatic.) 8 # (To be honest, I'm not sure why we need to include common.gypi. I thought i t was automatic.)
9 'variables': { 9 'variables': {
10 'includes': [ 'common.gypi', 'opts.gypi' ], 10 'includes': [ 'common.gypi', 'opts.gypi' ],
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 'type': 'static_library', 89 'type': 'static_library',
90 'standalone_static_library': 1, 90 'standalone_static_library': 1,
91 'dependencies': [ 'core.gyp:*' ], 91 'dependencies': [ 'core.gyp:*' ],
92 'include_dirs': [ 92 'include_dirs': [
93 '../include/private', 93 '../include/private',
94 '../src/core', 94 '../src/core',
95 '../src/utils', 95 '../src/utils',
96 ], 96 ],
97 'sources': [ '<@(ssse3_sources)' ], 97 'sources': [ '<@(ssse3_sources)' ],
98 'conditions': [ 98 'conditions': [
99 [ 'skia_os == "win"', { 99 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ] }],
100 'defines' : [ 'SK_CPU_SSE_LEVEL=31' ], 100 [ 'not skia_android_framework', { 'cflags': [ '-mssse3' ] }],
101 }],
102 [ 'not skia_android_framework', {
103 'cflags': [ '-mssse3' ],
104 }],
105 ], 101 ],
106 }, 102 },
107 { 103 {
108 'target_name': 'opts_sse41', 104 'target_name': 'opts_sse41',
109 'product_name': 'skia_opts_sse41', 105 'product_name': 'skia_opts_sse41',
110 'type': 'static_library', 106 'type': 'static_library',
111 'standalone_static_library': 1, 107 'standalone_static_library': 1,
112 'dependencies': [ 'core.gyp:*' ], 108 'dependencies': [ 'core.gyp:*' ],
113 'include_dirs': [ 109 'include_dirs': [
114 '../include/private', 110 '../include/private',
115 '../src/core', 111 '../src/core',
116 '../src/utils', 112 '../src/utils',
117 ], 113 ],
118 'sources': [ '<@(sse41_sources)' ], 114 'sources': [ '<@(sse41_sources)' ],
115 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' },
119 'conditions': [ 116 'conditions': [
120 [ 'skia_os == "win"', { 117 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ] }],
121 'defines' : [ 'SK_CPU_SSE_LEVEL=41' ], 118 [ 'not skia_android_framework', { 'cflags': [ '-msse4.1' ] }],
122 }],
123 [ 'not skia_android_framework', {
124 'cflags': [ '-msse4.1' ],
125 }],
126 [ 'skia_os == "mac"', {
127 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' },
128 }],
129 ], 119 ],
130 }, 120 },
131 { 121 {
132 'target_name': 'opts_sse42', 122 'target_name': 'opts_sse42',
133 'product_name': 'skia_opts_sse42', 123 'product_name': 'skia_opts_sse42',
134 'type': 'static_library', 124 'type': 'static_library',
135 'standalone_static_library': 1, 125 'standalone_static_library': 1,
136 'dependencies': [ 'core.gyp:*' ], 126 'dependencies': [ 'core.gyp:*' ],
137 'include_dirs': [ 127 'include_dirs': [
138 '../include/private', 128 '../include/private',
139 '../src/core', 129 '../src/core',
140 '../src/utils', 130 '../src/utils',
141 ], 131 ],
142 'sources': [ '<@(sse42_sources)' ], 132 'sources': [ '<@(sse42_sources)' ],
133 'xcode_settings': { 'GCC_ENABLE_SSE42_EXTENSIONS': 'YES' },
143 'conditions': [ 134 'conditions': [
144 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=42' ], }], 135 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=42' ] }],
145 [ 'not skia_android_framework', { 'cflags': [ '-msse4.2' ], }], 136 [ 'not skia_android_framework', { 'cflags': [ '-msse4.2' ] }],
146 [ 'skia_os == "mac"', { 'xcode_settings': { 'GCC_ENABLE_SSE42_EXTENSIONS ': 'YES' }, }],
147 ], 137 ],
148 }, 138 },
149 { 139 {
150 'target_name': 'opts_avx', 140 'target_name': 'opts_avx',
151 'product_name': 'skia_opts_avx', 141 'product_name': 'skia_opts_avx',
152 'type': 'static_library', 142 'type': 'static_library',
153 'standalone_static_library': 1, 143 'standalone_static_library': 1,
154 'dependencies': [ 'core.gyp:*' ], 144 'dependencies': [ 'core.gyp:*' ],
155 'include_dirs': [ 145 'include_dirs': [
156 '../include/private', 146 '../include/private',
157 '../src/core', 147 '../src/core',
158 '../src/utils', 148 '../src/utils',
159 ], 149 ],
160 'sources': [ '<@(avx_sources)' ], 150 'sources': [ '<@(avx_sources)' ],
151 'msvs_settings': { 'VCCLCompilerTool': { 'EnableEnhancedInstructionSet': ' 3' } },
152 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ] },
161 'conditions': [ 153 'conditions': [
162 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=51' ], }], 154 [ 'not skia_android_framework', { 'cflags': [ '-mavx' ] }],
163 [ 'not skia_android_framework', { 'cflags': [ '-mavx' ], }],
164 [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ] }, }],
165 ], 155 ],
166 }, 156 },
167 { 157 {
168 'target_name': 'opts_avx2', 158 'target_name': 'opts_avx2',
169 'product_name': 'skia_opts_avx2', 159 'product_name': 'skia_opts_avx2',
170 'type': 'static_library', 160 'type': 'static_library',
171 'standalone_static_library': 1, 161 'standalone_static_library': 1,
172 'dependencies': [ 'core.gyp:*' ], 162 'dependencies': [ 'core.gyp:*' ],
173 'include_dirs': [ 163 'include_dirs': [
174 '../include/private', 164 '../include/private',
175 '../src/core', 165 '../src/core',
176 '../src/utils', 166 '../src/utils',
177 ], 167 ],
178 'sources': [ '<@(avx2_sources)' ], 168 'sources': [ '<@(avx2_sources)' ],
169 'msvs_settings': { 'VCCLCompilerTool': { 'EnableEnhancedInstructionSet': ' 5' } },
170 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] },
179 'conditions': [ 171 'conditions': [
180 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=52' ], }], 172 [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ] }],
181 [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ], }],
182 [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ] }, }],
183 ], 173 ],
184 }, 174 },
185 { 175 {
186 'target_name': 'opts_neon', 176 'target_name': 'opts_neon',
187 'product_name': 'skia_opts_neon', 177 'product_name': 'skia_opts_neon',
188 'type': 'static_library', 178 'type': 'static_library',
189 'standalone_static_library': 1, 179 'standalone_static_library': 1,
190 'dependencies': [ 180 'dependencies': [
191 'core.gyp:*', 181 'core.gyp:*',
192 'effects.gyp:*' 182 'effects.gyp:*'
(...skipping 19 matching lines...) Expand all
212 ], 202 ],
213 }], 203 }],
214 ], 204 ],
215 'ldflags': [ 205 'ldflags': [
216 '-march=armv7-a', 206 '-march=armv7-a',
217 '-Wl,--fix-cortex-a8', 207 '-Wl,--fix-cortex-a8',
218 ], 208 ],
219 }, 209 },
220 ], 210 ],
221 } 211 }
OLDNEW
« 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