| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 cd $TEMP_DIR | 159 cd $TEMP_DIR |
| 160 | 160 |
| 161 echo "Generate Config Files" | 161 echo "Generate Config Files" |
| 162 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" | 162 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" |
| 163 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" | 163 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" |
| 164 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" | 164 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" |
| 165 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" | 165 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" |
| 166 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" | 166 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" |
| 167 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" | 167 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" |
| 168 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" | 168 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" |
| 169 gen_config_files win/x64 "--target=x86_64-win64-vs9 --enable-realtime-only ${all
_platforms}" |
| 169 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" | 170 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" |
| 170 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" | 171 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" |
| 171 | 172 |
| 172 echo "Remove temporary directory." | 173 echo "Remove temporary directory." |
| 173 cd $BASE_DIR | 174 cd $BASE_DIR |
| 174 rm -rf $TEMP_DIR | 175 rm -rf $TEMP_DIR |
| 175 | 176 |
| 176 echo "Lint libvpx configuration." | 177 echo "Lint libvpx configuration." |
| 177 lint_config linux/ia32 | 178 lint_config linux/ia32 |
| 178 lint_config linux/x64 | 179 lint_config linux/x64 |
| 179 lint_config linux/arm | 180 lint_config linux/arm |
| 180 lint_config linux/arm-neon | 181 lint_config linux/arm-neon |
| 181 lint_config win/ia32 | 182 lint_config win/ia32 |
| 183 lint_config win/x64 |
| 182 lint_config mac/ia32 | 184 lint_config mac/ia32 |
| 183 lint_config mac/x64 | 185 lint_config mac/x64 |
| 184 | 186 |
| 185 echo "Create temporary directory." | 187 echo "Create temporary directory." |
| 186 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 188 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
| 187 rm -rf $TEMP_DIR | 189 rm -rf $TEMP_DIR |
| 188 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 190 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
| 189 cd $TEMP_DIR | 191 cd $TEMP_DIR |
| 190 | 192 |
| 191 gen_rtcd_header linux/ia32 x86 | 193 gen_rtcd_header linux/ia32 x86 |
| 192 gen_rtcd_header linux/x64 x86_64 | 194 gen_rtcd_header linux/x64 x86_64 |
| 193 gen_rtcd_header linux/arm armv6 | 195 gen_rtcd_header linux/arm armv6 |
| 194 gen_rtcd_header linux/arm-neon armv7 | 196 gen_rtcd_header linux/arm-neon armv7 |
| 195 gen_rtcd_header linux/mipsel mipsel | 197 gen_rtcd_header linux/mipsel mipsel |
| 196 gen_rtcd_header win/ia32 x86 | 198 gen_rtcd_header win/ia32 x86 |
| 199 gen_rtcd_header win/x64 x86_64 |
| 197 gen_rtcd_header mac/ia32 x86 | 200 gen_rtcd_header mac/ia32 x86 |
| 198 gen_rtcd_header mac/x64 x86_64 | 201 gen_rtcd_header mac/x64 x86_64 |
| 199 | 202 |
| 200 echo "Prepare Makefile." | 203 echo "Prepare Makefile." |
| 201 ./configure --target=generic-gnu > /dev/null | 204 ./configure --target=generic-gnu > /dev/null |
| 202 make_clean | 205 make_clean |
| 203 | 206 |
| 204 echo "Generate X86 source list." | 207 echo "Generate X86 source list." |
| 205 config=$(print_config linux/ia32) | 208 config=$(print_config linux/ia32) |
| 206 make_clean | 209 make_clean |
| (...skipping 26 matching lines...) Expand all Loading... |
| 233 make_clean | 236 make_clean |
| 234 make libvpx_srcs.txt target=libs $config > /dev/null | 237 make libvpx_srcs.txt target=libs $config > /dev/null |
| 235 convert_srcs_to_gypi libvpx_srcs.txt $BASE_DIR/libvpx_srcs_mips.gypi | 238 convert_srcs_to_gypi libvpx_srcs.txt $BASE_DIR/libvpx_srcs_mips.gypi |
| 236 | 239 |
| 237 echo "Remove temporary directory." | 240 echo "Remove temporary directory." |
| 238 cd $BASE_DIR | 241 cd $BASE_DIR |
| 239 rm -rf $TEMP_DIR | 242 rm -rf $TEMP_DIR |
| 240 | 243 |
| 241 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 244 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
| 242 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 245 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |