OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'target_defaults': { | 6 'target_defaults': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { | 8 ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { |
9 'cflags!': [ '-Os' ], | 9 'cflags!': [ '-Os' ], |
10 'cflags': [ '-O2' ], | 10 'cflags': [ '-O2' ], |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 'dsp/lossless_neon.c', | 174 'dsp/lossless_neon.c', |
175 'dsp/rescaler_neon.c', | 175 'dsp/rescaler_neon.c', |
176 'dsp/upsampling_neon.c', | 176 'dsp/upsampling_neon.c', |
177 ], | 177 ], |
178 'conditions': [ | 178 'conditions': [ |
179 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or ar m_neon_optional == 1)', { | 179 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or ar m_neon_optional == 1)', { |
180 # behavior similar to *.c.neon in an Android.mk | 180 # behavior similar to *.c.neon in an Android.mk |
181 'cflags!': [ '-mfpu=vfpv3-d16' ], | 181 'cflags!': [ '-mfpu=vfpv3-d16' ], |
182 'cflags': [ '-mfpu=neon' ], | 182 'cflags': [ '-mfpu=neon' ], |
183 }], | 183 }], |
184 ['target_arch == "arm64"', { | 184 ['target_arch == "arm64" and OS == "android"', { |
jzern
2016/05/31 23:37:15
you should be able to check is_clang, not sure if
apatole
2016/06/01 05:25:41
OK, thanks for review, will check how it can be re
| |
185 # avoid an ICE with gcc-4.9: b/15574841 | 185 # avoid an ICE with gcc-4.9: b/15574841 |
186 # Disable it for linux arm64 as clang build fails with error - uns upported flag. | |
186 'cflags': [ '-frename-registers' ], | 187 'cflags': [ '-frename-registers' ], |
187 }], | 188 }], |
188 ] | 189 ] |
189 }, { | 190 }, { |
190 'type': 'none', | 191 'type': 'none', |
191 }], | 192 }], |
192 ], | 193 ], |
193 }, | 194 }, |
194 { | 195 { |
195 'target_name': 'libwebp_enc', | 196 'target_name': 'libwebp_enc', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 ], | 262 ], |
262 'direct_dependent_settings': { | 263 'direct_dependent_settings': { |
263 'include_dirs': ['.'], | 264 'include_dirs': ['.'], |
264 }, | 265 }, |
265 'conditions': [ | 266 'conditions': [ |
266 ['OS!="win"', {'product_name': 'webp'}], | 267 ['OS!="win"', {'product_name': 'webp'}], |
267 ], | 268 ], |
268 }, | 269 }, |
269 ], | 270 ], |
270 } | 271 } |
OLD | NEW |