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

Side by Side Diff: third_party/libvpx/generate_gni.sh

Issue 2767143004: libvpx: use bsd-compatible sed expressions (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/libvpx/lint_config.sh » ('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 .gni files and files in the 7 # This script is used to generate .gni files and files in the
8 # config/platform directories needed to build libvpx. 8 # config/platform 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 # Generate Config files. "--enable-external-build" must be set to skip 265 # Generate Config files. "--enable-external-build" must be set to skip
266 # detection of capabilities on specific targets. 266 # detection of capabilities on specific targets.
267 # $1 - Header file directory. 267 # $1 - Header file directory.
268 # $2 - Config command line. 268 # $2 - Config command line.
269 function gen_config_files { 269 function gen_config_files {
270 ./configure $2 > /dev/null 270 ./configure $2 > /dev/null
271 271
272 # Disable HAVE_UNISTD_H as it causes vp8 to try to detect how many cpus 272 # Disable HAVE_UNISTD_H as it causes vp8 to try to detect how many cpus
273 # available, which doesn't work from inside a sandbox on linux. 273 # available, which doesn't work from inside a sandbox on linux.
274 sed -i.bak -e 's/\(HAVE_UNISTD_H\s\+\)1/\10/' vpx_config.h 274 sed -i.bak -e 's/\(HAVE_UNISTD_H[[:space:]]*\)1/\10/' vpx_config.h
275 rm vpx_config.h.bak 275 rm vpx_config.h.bak
276 276
277 # Use the correct ads2gas script. 277 # Use the correct ads2gas script.
278 if [[ "$1" == linux* ]]; then 278 if [[ "$1" == linux* ]]; then
279 local ASM_CONV=ads2gas.pl 279 local ASM_CONV=ads2gas.pl
280 else 280 else
281 local ASM_CONV=ads2gas_apple.pl 281 local ASM_CONV=ads2gas_apple.pl
282 fi 282 fi
283 283
284 # Generate vpx_config.asm. Do not create one for mips or native client. 284 # Generate vpx_config.asm. Do not create one for mips or native client.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 cd $BASE_DIR 462 cd $BASE_DIR
463 rm -rf $TEMP_DIR 463 rm -rf $TEMP_DIR
464 464
465 gn format --in-place $BASE_DIR/BUILD.gn 465 gn format --in-place $BASE_DIR/BUILD.gn
466 gn format --in-place $BASE_DIR/libvpx_srcs.gni 466 gn format --in-place $BASE_DIR/libvpx_srcs.gni
467 467
468 cd $BASE_DIR/$LIBVPX_SRC_DIR 468 cd $BASE_DIR/$LIBVPX_SRC_DIR
469 update_readme 469 update_readme
470 470
471 cd $BASE_DIR 471 cd $BASE_DIR
OLDNEW
« no previous file with comments | « no previous file | third_party/libvpx/lint_config.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698