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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 cd $TEMP_DIR | 326 cd $TEMP_DIR |
327 | 327 |
328 echo "Generate Config Files" | 328 echo "Generate Config Files" |
329 # TODO(joeyparrish) Enable AVX2 when broader VS2013 support is available | 329 # TODO(joeyparrish) Enable AVX2 when broader VS2013 support is available |
330 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" | 330 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" |
331 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}" | 331 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}" |
332 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}" | 332 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}" |
333 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs ${all_platforms}" | 333 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs ${all_platforms}" |
334 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only ${all_platforms}" | 334 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only ${all_platforms}" |
335 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" | 335 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" |
336 gen_config_files linux/arm64 "--force-target=armv8-linux-gcc --enable-pic --enab le-realtime-only ${all_platforms}" | |
336 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne d ${all_platforms}" | 337 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne d ${all_platforms}" |
337 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" | 338 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" |
338 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}" | 339 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}" |
339 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}" | 340 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}" |
340 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}" | 341 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}" |
341 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms}" | 342 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms}" |
342 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}" | 343 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}" |
343 | 344 |
344 echo "Remove temporary directory." | 345 echo "Remove temporary directory." |
345 cd $BASE_DIR | 346 cd $BASE_DIR |
346 rm -rf $TEMP_DIR | 347 rm -rf $TEMP_DIR |
347 | 348 |
348 echo "Lint libvpx configuration." | 349 echo "Lint libvpx configuration." |
349 lint_config linux/ia32 | 350 lint_config linux/ia32 |
350 lint_config linux/x64 | 351 lint_config linux/x64 |
351 lint_config linux/arm | 352 lint_config linux/arm |
352 lint_config linux/arm-neon | 353 lint_config linux/arm-neon |
353 lint_config linux/arm-neon-cpu-detect | 354 lint_config linux/arm-neon-cpu-detect |
355 lint_config linux/arm64 | |
356 #lint_config linux/mipsel | |
Johann
2014/05/16 15:22:32
mips does not pass lint. it was intentional to lea
fgalligan1
2014/05/16 15:30:25
Would probably be better in a comment / TODO in th
| |
354 lint_config linux/generic | 357 lint_config linux/generic |
355 lint_config win/ia32 | 358 lint_config win/ia32 |
356 lint_config win/x64 | 359 lint_config win/x64 |
357 lint_config mac/ia32 | 360 lint_config mac/ia32 |
358 lint_config mac/x64 | 361 lint_config mac/x64 |
359 lint_config nacl | 362 lint_config nacl |
360 | 363 |
361 echo "Create temporary directory." | 364 echo "Create temporary directory." |
362 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 365 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
363 rm -rf $TEMP_DIR | 366 rm -rf $TEMP_DIR |
364 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 367 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
365 cd $TEMP_DIR | 368 cd $TEMP_DIR |
366 | 369 |
367 gen_rtcd_header linux/ia32 x86 | 370 gen_rtcd_header linux/ia32 x86 |
368 gen_rtcd_header linux/x64 x86_64 | 371 gen_rtcd_header linux/x64 x86_64 |
369 gen_rtcd_header linux/arm armv6 | 372 gen_rtcd_header linux/arm armv6 |
370 gen_rtcd_header linux/arm-neon armv7 | 373 gen_rtcd_header linux/arm-neon armv7 |
371 gen_rtcd_header linux/arm-neon-cpu-detect armv7 | 374 gen_rtcd_header linux/arm-neon-cpu-detect armv7 |
375 gen_rtcd_header linux/arm64 armv8 | |
372 gen_rtcd_header linux/mipsel mipsel | 376 gen_rtcd_header linux/mipsel mipsel |
373 gen_rtcd_header linux/generic generic | 377 gen_rtcd_header linux/generic generic |
374 gen_rtcd_header win/ia32 x86 | 378 gen_rtcd_header win/ia32 x86 |
375 gen_rtcd_header win/x64 x86_64 | 379 gen_rtcd_header win/x64 x86_64 |
376 gen_rtcd_header mac/ia32 x86 | 380 gen_rtcd_header mac/ia32 x86 |
377 gen_rtcd_header mac/x64 x86_64 | 381 gen_rtcd_header mac/x64 x86_64 |
378 gen_rtcd_header nacl nacl | 382 gen_rtcd_header nacl nacl |
379 | 383 |
380 echo "Prepare Makefile." | 384 echo "Prepare Makefile." |
381 ./configure --target=generic-gnu > /dev/null | 385 ./configure --target=generic-gnu > /dev/null |
(...skipping 25 matching lines...) Expand all Loading... | |
407 make_clean | 411 make_clean |
408 make libvpx_srcs.txt target=libs $config > /dev/null | 412 make libvpx_srcs.txt target=libs $config > /dev/null |
409 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_arm_neon | 413 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_arm_neon |
410 | 414 |
411 echo "Generate ARM NEON CPU DETECT source list." | 415 echo "Generate ARM NEON CPU DETECT source list." |
412 config=$(print_config linux/arm-neon-cpu-detect) | 416 config=$(print_config linux/arm-neon-cpu-detect) |
413 make_clean | 417 make_clean |
414 make libvpx_srcs.txt target=libs $config > /dev/null | 418 make libvpx_srcs.txt target=libs $config > /dev/null |
415 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_arm_neon_cpu_detect | 419 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_arm_neon_cpu_detect |
416 | 420 |
421 echo "Generate ARM64 source list." | |
422 config=$(print_config linux/arm64) | |
423 make_clean | |
424 make libvpx_srcs.txt target=libs $config > /dev/null | |
425 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_arm64 | |
426 | |
417 echo "Generate MIPS source list." | 427 echo "Generate MIPS source list." |
418 config=$(print_config_basic linux/mipsel) | 428 config=$(print_config_basic linux/mipsel) |
419 make_clean | 429 make_clean |
420 make libvpx_srcs.txt target=libs $config > /dev/null | 430 make libvpx_srcs.txt target=libs $config > /dev/null |
421 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_mips | 431 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_mips |
422 | 432 |
423 echo "Generate NaCl source list." | 433 echo "Generate NaCl source list." |
424 config=$(print_config_basic nacl) | 434 config=$(print_config_basic nacl) |
425 make_clean | 435 make_clean |
426 make libvpx_srcs.txt target=libs $config > /dev/null | 436 make libvpx_srcs.txt target=libs $config > /dev/null |
427 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl | 437 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl |
428 | 438 |
429 echo "Generate GENERIC source list." | 439 echo "Generate GENERIC source list." |
430 config=$(print_config_basic linux/generic) | 440 config=$(print_config_basic linux/generic) |
431 make_clean | 441 make_clean |
432 make libvpx_srcs.txt target=libs $config > /dev/null | 442 make libvpx_srcs.txt target=libs $config > /dev/null |
433 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic | 443 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic |
434 | 444 |
435 echo "Remove temporary directory." | 445 echo "Remove temporary directory." |
436 cd $BASE_DIR | 446 cd $BASE_DIR |
437 rm -rf $TEMP_DIR | 447 rm -rf $TEMP_DIR |
438 | 448 |
439 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 449 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
440 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 450 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
OLD | NEW |