OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 'include_dirs': [ | 27 'include_dirs': [ |
28 '../include/private', | 28 '../include/private', |
29 '../src/core', | 29 '../src/core', |
30 '../src/opts', | 30 '../src/opts', |
31 '../src/utils', | 31 '../src/utils', |
32 '../include/utils', | 32 '../include/utils', |
33 ], | 33 ], |
34 'conditions': [ | 34 'conditions': [ |
35 [ '"x86" in skia_arch_type and skia_os != "ios"', { | 35 [ '"x86" in skia_arch_type and skia_os != "ios"', { |
36 'cflags': [ '-msse2' ], | 36 'cflags': [ '-msse2' ], |
37 'dependencies': [ 'opts_ssse3', 'opts_sse41' ], | 37 'dependencies': [ 'opts_ssse3', 'opts_sse41', 'opts_sse42', 'opts_avx'
, 'opts_avx2' ], |
38 'sources': [ '<@(sse2_sources)' ], | 38 'sources': [ '<@(sse2_sources)' ], |
39 }], | 39 }], |
40 | 40 |
41 [ 'skia_arch_type == "mips"', { | 41 [ 'skia_arch_type == "mips"', { |
42 'conditions': [ | 42 'conditions': [ |
43 [ '(mips_arch_variant == "mips32r2") and (mips_dsp == 1 or mips_dsp
== 2)', { | 43 [ '(mips_arch_variant == "mips32r2") and (mips_dsp == 1 or mips_dsp
== 2)', { |
44 'sources': [ '<@(mips_dsp_sources)' ], | 44 'sources': [ '<@(mips_dsp_sources)' ], |
45 },{ | 45 },{ |
46 'sources': [ '<@(none_sources)' ], | 46 'sources': [ '<@(none_sources)' ], |
47 }], | 47 }], |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 }], | 122 }], |
123 [ 'not skia_android_framework', { | 123 [ 'not skia_android_framework', { |
124 'cflags': [ '-msse4.1' ], | 124 'cflags': [ '-msse4.1' ], |
125 }], | 125 }], |
126 [ 'skia_os == "mac"', { | 126 [ 'skia_os == "mac"', { |
127 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, | 127 'xcode_settings': { 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES' }, |
128 }], | 128 }], |
129 ], | 129 ], |
130 }, | 130 }, |
131 { | 131 { |
| 132 'target_name': 'opts_sse42', |
| 133 'product_name': 'skia_opts_sse42', |
| 134 'type': 'static_library', |
| 135 'standalone_static_library': 1, |
| 136 'dependencies': [ 'core.gyp:*' ], |
| 137 'include_dirs': [ |
| 138 '../include/private', |
| 139 '../src/core', |
| 140 '../src/utils', |
| 141 ], |
| 142 'sources': [ '<@(sse42_sources)' ], |
| 143 'conditions': [ |
| 144 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=42' ], }], |
| 145 [ 'not skia_android_framework', { 'cflags': [ '-msse4.2' ], }], |
| 146 [ 'skia_os == "mac"', { 'xcode_settings': { 'GCC_ENABLE_SSE42_EXTENSIONS
': 'YES' }, }], |
| 147 ], |
| 148 }, |
| 149 { |
| 150 'target_name': 'opts_avx', |
| 151 'product_name': 'skia_opts_avx', |
| 152 'type': 'static_library', |
| 153 'standalone_static_library': 1, |
| 154 'dependencies': [ 'core.gyp:*' ], |
| 155 'include_dirs': [ |
| 156 '../include/private', |
| 157 '../src/core', |
| 158 '../src/utils', |
| 159 ], |
| 160 'sources': [ '<@(avx_sources)' ], |
| 161 'conditions': [ |
| 162 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=51' ], }], |
| 163 [ 'not skia_android_framework', { 'cflags': [ '-mavx' ], }], |
| 164 [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx' ]
}, }], |
| 165 ], |
| 166 }, |
| 167 { |
| 168 'target_name': 'opts_avx2', |
| 169 'product_name': 'skia_opts_avx2', |
| 170 'type': 'static_library', |
| 171 'standalone_static_library': 1, |
| 172 'dependencies': [ 'core.gyp:*' ], |
| 173 'include_dirs': [ |
| 174 '../include/private', |
| 175 '../src/core', |
| 176 '../src/utils', |
| 177 ], |
| 178 'sources': [ '<@(avx2_sources)' ], |
| 179 'conditions': [ |
| 180 [ 'skia_os == "win"', { 'defines' : [ 'SK_CPU_SSE_LEVEL=52' ], }], |
| 181 [ 'not skia_android_framework', { 'cflags': [ '-mavx2' ], }], |
| 182 [ 'skia_os == "mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-mavx2' ]
}, }], |
| 183 ], |
| 184 }, |
| 185 { |
132 'target_name': 'opts_neon', | 186 'target_name': 'opts_neon', |
133 'product_name': 'skia_opts_neon', | 187 'product_name': 'skia_opts_neon', |
134 'type': 'static_library', | 188 'type': 'static_library', |
135 'standalone_static_library': 1, | 189 'standalone_static_library': 1, |
136 'dependencies': [ | 190 'dependencies': [ |
137 'core.gyp:*', | 191 'core.gyp:*', |
138 'effects.gyp:*' | 192 'effects.gyp:*' |
139 ], | 193 ], |
140 'include_dirs': [ | 194 'include_dirs': [ |
141 '../include/private', | 195 '../include/private', |
(...skipping 16 matching lines...) Expand all Loading... |
158 ], | 212 ], |
159 }], | 213 }], |
160 ], | 214 ], |
161 'ldflags': [ | 215 'ldflags': [ |
162 '-march=armv7-a', | 216 '-march=armv7-a', |
163 '-Wl,--fix-cortex-a8', | 217 '-Wl,--fix-cortex-a8', |
164 ], | 218 ], |
165 }, | 219 }, |
166 ], | 220 ], |
167 } | 221 } |
OLD | NEW |