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

Unified Diff: generate_gypi.sh

Issue 508433003: vpx: Simplify intrinsic gypi files. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: msvstoo Created 6 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 | libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generate_gypi.sh
diff --git a/generate_gypi.sh b/generate_gypi.sh
index caaa523f786a63dede3dcb93cb78754e6b90bb87..09255f193793393ab82ff6b16b75def9dd4d8ee3 100755
--- a/generate_gypi.sh
+++ b/generate_gypi.sh
@@ -78,26 +78,18 @@ function write_target_definition {
echo " '<(libvpx_source)/$f'," >> $2
done
echo " ]," >> $2
- echo " 'conditions': [" >> $2
- echo " ['os_posix==1 and OS!=\"mac\" and OS!=\"ios\"', {" >> $2
- echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2
- echo " 'cflags': [ '-m$4', ]," >> $2
- echo " }]," >> $2
- echo " ['OS==\"mac\" or OS==\"ios\"', {" >> $2
- echo " 'xcode_settings': {" >> $2
- echo " 'OTHER_CFLAGS': [ '-m$4', ]," >> $2
- echo " }," >> $2
- echo " }]," >> $2
+ if [[ $4 == fpu=neon ]]; then
+ echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2
+ fi
+ echo " 'cflags': [ '-m$4', ]," >> $2
+ echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2
if [[ $4 == avx* ]]; then
- echo " ['OS==\"win\"', {" >> $2
- echo " 'msvs_settings': {" >> $2
- echo " 'VCCLCompilerTool': {" >> $2
- echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2
- echo " }," >> $2
- echo " }," >> $2
- echo " }]," >> $2
+ echo " 'msvs_settings': {" >> $2
+ echo " 'VCCLCompilerTool': {" >> $2
+ echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2
+ echo " }," >> $2
+ echo " }," >> $2
fi
- echo " ]," >> $2
echo " }," >> $2
}
« no previous file with comments | « no previous file | libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698