| OLD | NEW |
| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 $BASE_DIR/lint_config.sh -p \ | 250 $BASE_DIR/lint_config.sh -p \ |
| 251 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \ | 251 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \ |
| 252 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \ | 252 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \ |
| 253 -o $BASE_DIR/$TEMP_DIR/libvpx.config | 253 -o $BASE_DIR/$TEMP_DIR/libvpx.config |
| 254 fi | 254 fi |
| 255 | 255 |
| 256 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ | 256 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ |
| 257 --arch=$2 \ | 257 --arch=$2 \ |
| 258 --sym=vp8_rtcd \ | 258 --sym=vp8_rtcd \ |
| 259 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 259 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 260 --disable-avx2 \ |
| 260 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.sh \ | 261 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.sh \ |
| 261 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h | 262 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h |
| 262 | 263 |
| 263 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ | 264 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ |
| 264 --arch=$2 \ | 265 --arch=$2 \ |
| 265 --sym=vp9_rtcd \ | 266 --sym=vp9_rtcd \ |
| 266 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 267 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 268 --disable-avx2 \ |
| 267 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.sh \ | 269 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.sh \ |
| 268 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h | 270 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h |
| 269 | 271 |
| 270 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ | 272 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ |
| 271 --arch=$2 \ | 273 --arch=$2 \ |
| 272 --sym=vpx_scale_rtcd \ | 274 --sym=vpx_scale_rtcd \ |
| 273 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 275 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 276 --disable-avx2 \ |
| 274 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.sh \ | 277 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.sh \ |
| 275 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h | 278 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h |
| 276 | 279 |
| 277 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config | 280 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config |
| 278 } | 281 } |
| 279 | 282 |
| 280 # Generate Config files. "--enable-external-build" must be set to skip | 283 # Generate Config files. "--enable-external-build" must be set to skip |
| 281 # detection of capabilities on specific targets. | 284 # detection of capabilities on specific targets. |
| 282 # $1 - Header file directory. | 285 # $1 - Header file directory. |
| 283 # $2 - Config command line. | 286 # $2 - Config command line. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 298 rm -rf vpx_config.* | 301 rm -rf vpx_config.* |
| 299 } | 302 } |
| 300 | 303 |
| 301 echo "Create temporary directory." | 304 echo "Create temporary directory." |
| 302 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 305 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
| 303 rm -rf $TEMP_DIR | 306 rm -rf $TEMP_DIR |
| 304 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 307 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
| 305 cd $TEMP_DIR | 308 cd $TEMP_DIR |
| 306 | 309 |
| 307 echo "Generate Config Files" | 310 echo "Generate Config Files" |
| 308 all_platforms="--enable-external-build --enable-postproc --disable-install-srcs
--enable-multi-res-encoding --enable-temporal-denoising --disable-vp9-encoder --
disable-unit-tests --disable-install-docs --disable-examples" | 311 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" |
| 309 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" | 312 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" |
| 310 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" | 313 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" |
| 311 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" | 314 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" |
| 312 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" | 315 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" |
| 313 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi
c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" | 316 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi
c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" |
| 314 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" | 317 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" |
| 315 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" | 318 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" |
| 316 gen_config_files win/x64 "--target=x86_64-win64-vs9 --enable-realtime-only ${all
_platforms}" | 319 gen_config_files win/x64 "--target=x86_64-win64-vs9 --enable-realtime-only ${all
_platforms}" |
| 317 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" | 320 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" |
| 318 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" | 321 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 make_clean | 403 make_clean |
| 401 make libvpx_srcs.txt target=libs $config > /dev/null | 404 make libvpx_srcs.txt target=libs $config > /dev/null |
| 402 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl | 405 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl |
| 403 | 406 |
| 404 echo "Remove temporary directory." | 407 echo "Remove temporary directory." |
| 405 cd $BASE_DIR | 408 cd $BASE_DIR |
| 406 rm -rf $TEMP_DIR | 409 rm -rf $TEMP_DIR |
| 407 | 410 |
| 408 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 411 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
| 409 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 412 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |