| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 $BASE_DIR/lint_config.sh -p \ | 268 $BASE_DIR/lint_config.sh -p \ |
| 269 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \ | 269 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \ |
| 270 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \ | 270 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \ |
| 271 -o $BASE_DIR/$TEMP_DIR/libvpx.config | 271 -o $BASE_DIR/$TEMP_DIR/libvpx.config |
| 272 fi | 272 fi |
| 273 | 273 |
| 274 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ | 274 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ |
| 275 --arch=$2 \ | 275 --arch=$2 \ |
| 276 --sym=vp8_rtcd \ | 276 --sym=vp8_rtcd \ |
| 277 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 277 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 278 --disable-avx2 \ |
| 278 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.pl \ | 279 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.pl \ |
| 279 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h | 280 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h |
| 280 | 281 |
| 281 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ | 282 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ |
| 282 --arch=$2 \ | 283 --arch=$2 \ |
| 283 --sym=vp9_rtcd \ | 284 --sym=vp9_rtcd \ |
| 284 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 285 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 286 --disable-avx2 \ |
| 285 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.pl \ | 287 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.pl \ |
| 286 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h | 288 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h |
| 287 | 289 |
| 288 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ | 290 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \ |
| 289 --arch=$2 \ | 291 --arch=$2 \ |
| 290 --sym=vpx_scale_rtcd \ | 292 --sym=vpx_scale_rtcd \ |
| 291 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ | 293 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ |
| 294 --disable-avx2 \ |
| 292 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.pl \ | 295 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.pl \ |
| 293 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h | 296 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h |
| 294 | 297 |
| 295 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config | 298 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config |
| 296 } | 299 } |
| 297 | 300 |
| 298 # Generate Config files. "--enable-external-build" must be set to skip | 301 # Generate Config files. "--enable-external-build" must be set to skip |
| 299 # detection of capabilities on specific targets. | 302 # detection of capabilities on specific targets. |
| 300 # $1 - Header file directory. | 303 # $1 - Header file directory. |
| 301 # $2 - Config command line. | 304 # $2 - Config command line. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 make_clean | 431 make_clean |
| 429 make libvpx_srcs.txt target=libs $config > /dev/null | 432 make libvpx_srcs.txt target=libs $config > /dev/null |
| 430 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic | 433 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic |
| 431 | 434 |
| 432 echo "Remove temporary directory." | 435 echo "Remove temporary directory." |
| 433 cd $BASE_DIR | 436 cd $BASE_DIR |
| 434 rm -rf $TEMP_DIR | 437 rm -rf $TEMP_DIR |
| 435 | 438 |
| 436 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 439 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
| 437 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 440 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |