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

Side by Side Diff: generate_gypi.sh

Issue 232133009: libvpx: Pull from upstream (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 | « README.chromium ('k') | libvpx_srcs_arm.gypi » ('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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config 255 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config
256 if [ "$2" = "mipsel" ]; then 256 if [ "$2" = "mipsel" ]; then
257 print_config_basic $1 > $BASE_DIR/$TEMP_DIR/libvpx.config 257 print_config_basic $1 > $BASE_DIR/$TEMP_DIR/libvpx.config
258 else 258 else
259 $BASE_DIR/lint_config.sh -p \ 259 $BASE_DIR/lint_config.sh -p \
260 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \ 260 -h $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.h \
261 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \ 261 -a $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_config.asm \
262 -o $BASE_DIR/$TEMP_DIR/libvpx.config 262 -o $BASE_DIR/$TEMP_DIR/libvpx.config
263 fi 263 fi
264 264
265 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ 265 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
266 --arch=$2 \ 266 --arch=$2 \
267 --sym=vp8_rtcd \ 267 --sym=vp8_rtcd \
268 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ 268 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
269 --disable-avx2 \ 269 --disable-avx2 \
270 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.sh \ 270 $BASE_DIR/$LIBVPX_SRC_DIR/vp8/common/rtcd_defs.pl \
271 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h 271 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp8_rtcd.h
272 272
273 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ 273 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
274 --arch=$2 \ 274 --arch=$2 \
275 --sym=vp9_rtcd \ 275 --sym=vp9_rtcd \
276 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ 276 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
277 --disable-avx2 \ 277 --disable-avx2 \
278 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.sh \ 278 $BASE_DIR/$LIBVPX_SRC_DIR/vp9/common/vp9_rtcd_defs.pl \
279 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h 279 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vp9_rtcd.h
280 280
281 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.sh \ 281 $BASE_DIR/$LIBVPX_SRC_DIR/build/make/rtcd.pl \
282 --arch=$2 \ 282 --arch=$2 \
283 --sym=vpx_scale_rtcd \ 283 --sym=vpx_scale_rtcd \
284 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \ 284 --config=$BASE_DIR/$TEMP_DIR/libvpx.config \
285 --disable-avx2 \ 285 --disable-avx2 \
286 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.sh \ 286 $BASE_DIR/$LIBVPX_SRC_DIR/vpx_scale/vpx_scale_rtcd.pl \
287 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h 287 > $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/vpx_scale_rtcd.h
288 288
289 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config 289 rm -rf $BASE_DIR/$TEMP_DIR/libvpx.config
290 } 290 }
291 291
292 # Generate Config files. "--enable-external-build" must be set to skip 292 # Generate Config files. "--enable-external-build" must be set to skip
293 # detection of capabilities on specific targets. 293 # detection of capabilities on specific targets.
294 # $1 - Header file directory. 294 # $1 - Header file directory.
295 # $2 - Config command line. 295 # $2 - Config command line.
296 function gen_config_files { 296 function gen_config_files {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 make_clean 421 make_clean
422 make libvpx_srcs.txt target=libs $config > /dev/null 422 make libvpx_srcs.txt target=libs $config > /dev/null
423 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic 423 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic
424 424
425 echo "Remove temporary directory." 425 echo "Remove temporary directory."
426 cd $BASE_DIR 426 cd $BASE_DIR
427 rm -rf $TEMP_DIR 427 rm -rf $TEMP_DIR
428 428
429 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? 429 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel?
430 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? 430 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW
« no previous file with comments | « README.chromium ('k') | libvpx_srcs_arm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698