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

Side by Side Diff: generate_gypi.sh

Issue 240153006: Disable AVX2 support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is used to generate .gypi files and files in the config/platform 7 # This script is used to generate .gypi files and files in the config/platform
8 # directories needed to build libvpx. 8 # directories needed to build libvpx.
9 # Every time libvpx source code is updated just run this script. 9 # Every time libvpx source code is updated just run this script.
10 # 10 #
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 #write_target_definition sse4_1_sources[@] $2 libvpx_intrinsics_sse4_1 sse4. 1 146 #write_target_definition sse4_1_sources[@] $2 libvpx_intrinsics_sse4_1 sse4. 1
147 echo "ERROR: Uncomment sse4_1 sections in libvpx.gyp" 147 echo "ERROR: Uncomment sse4_1 sections in libvpx.gyp"
148 exit 1 148 exit 1
149 fi 149 fi
150 if [ 0 -ne ${#avx_sources} ]; then 150 if [ 0 -ne ${#avx_sources} ]; then
151 #write_target_definition avx_sources[@] $2 libvpx_intrinsics_avx avx 151 #write_target_definition avx_sources[@] $2 libvpx_intrinsics_avx avx
152 echo "ERROR: Uncomment avx sections in libvpx.gyp" 152 echo "ERROR: Uncomment avx sections in libvpx.gyp"
153 exit 1 153 exit 1
154 fi 154 fi
155 if [ 0 -ne ${#avx2_sources} ]; then 155 if [ 0 -ne ${#avx2_sources} ]; then
156 write_target_definition avx2_sources[@] $2 libvpx_intrinsics_avx2 avx2 156 #write_target_definition avx2_sources[@] $2 libvpx_intrinsics_avx2 avx2
157 echo "ERROR: Uncomment avx2 sections in libvpx.gyp"
158 exit 1
157 fi 159 fi
158 160
159 # arm neon 161 # arm neon
160 if [ 0 -ne ${#neon_sources} ]; then 162 if [ 0 -ne ${#neon_sources} ]; then
161 write_target_definition neon_sources[@] $2 libvpx_intrinsics_neon fpu=neon 163 write_target_definition neon_sources[@] $2 libvpx_intrinsics_neon fpu=neon
162 fi 164 fi
163 165
164 echo " ]," >> $2 166 echo " ]," >> $2
165 167
166 write_gypi_footer $2 168 write_gypi_footer $2
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 rm -rf vpx_config.* 316 rm -rf vpx_config.*
315 } 317 }
316 318
317 echo "Create temporary directory." 319 echo "Create temporary directory."
318 TEMP_DIR="$LIBVPX_SRC_DIR.temp" 320 TEMP_DIR="$LIBVPX_SRC_DIR.temp"
319 rm -rf $TEMP_DIR 321 rm -rf $TEMP_DIR
320 cp -R $LIBVPX_SRC_DIR $TEMP_DIR 322 cp -R $LIBVPX_SRC_DIR $TEMP_DIR
321 cd $TEMP_DIR 323 cd $TEMP_DIR
322 324
323 echo "Generate Config Files" 325 echo "Generate Config Files"
324 all_platforms="--enable-external-build --enable-postproc --disable-install-srcs --enable-multi-res-encoding --enable-temporal-denoising --disable-unit-tests --d isable-install-docs --disable-examples" 326 # TODO(joeyparrish) Enable AVX2 when broader VS2013 support is available
327 all_platforms="--enable-external-build --enable-postproc --disable-install-srcs --enable-multi-res-encoding --enable-temporal-denoising --disable-unit-tests --d isable-install-docs --disable-examples --disable-avx2"
325 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}" 328 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}"
326 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}" 329 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}"
327 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs ${all_platforms}" 330 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs ${all_platforms}"
328 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only ${all_platforms}" 331 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only ${all_platforms}"
329 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" 332 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}"
330 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne d ${all_platforms}" 333 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne d ${all_platforms}"
331 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" 334 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}"
332 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}" 335 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}"
333 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}" 336 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}"
334 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}" 337 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 make_clean 428 make_clean
426 make libvpx_srcs.txt target=libs $config > /dev/null 429 make libvpx_srcs.txt target=libs $config > /dev/null
427 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic 430 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic
428 431
429 echo "Remove temporary directory." 432 echo "Remove temporary directory."
430 cd $BASE_DIR 433 cd $BASE_DIR
431 rm -rf $TEMP_DIR 434 rm -rf $TEMP_DIR
432 435
433 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? 436 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel?
434 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? 437 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698