| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 echo " '<(libvpx_source)'," >> $2 | 73 echo " '<(libvpx_source)'," >> $2 |
| 74 echo " ]," >> $2 | 74 echo " ]," >> $2 |
| 75 echo " 'sources': [" >> $2 | 75 echo " 'sources': [" >> $2 |
| 76 for f in $sources_list | 76 for f in $sources_list |
| 77 do | 77 do |
| 78 echo " '<(libvpx_source)/$f'," >> $2 | 78 echo " '<(libvpx_source)/$f'," >> $2 |
| 79 done | 79 done |
| 80 echo " ]," >> $2 | 80 echo " ]," >> $2 |
| 81 if [[ $4 == fpu=neon ]]; then | 81 if [[ $4 == fpu=neon ]]; then |
| 82 echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2 | 82 echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2 |
| 83 echo " 'conditions': [" >> $2 |
| 84 echo " # Disable LTO in neon targets due to compiler bug" >> $2 |
| 85 echo " # crbug.com/408997" >> $2 |
| 86 echo " ['use_lto==1', {" >> $2 |
| 87 echo " 'cflags!': [" >> $2 |
| 88 echo " '-flto'," >> $2 |
| 89 echo " '-ffat-lto-objects'," >> $2 |
| 90 echo " ]," >> $2 |
| 91 echo " }]," >> $2 |
| 92 echo " ]," >> $2 |
| 83 fi | 93 fi |
| 84 echo " 'cflags': [ '-m$4', ]," >> $2 | 94 echo " 'cflags': [ '-m$4', ]," >> $2 |
| 85 echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2 | 95 echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2 |
| 86 if [[ $4 == avx* ]]; then | 96 if [[ $4 == avx* ]]; then |
| 87 echo " 'msvs_settings': {" >> $2 | 97 echo " 'msvs_settings': {" >> $2 |
| 88 echo " 'VCCLCompilerTool': {" >> $2 | 98 echo " 'VCCLCompilerTool': {" >> $2 |
| 89 echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2 | 99 echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2 |
| 90 echo " }," >> $2 | 100 echo " }," >> $2 |
| 91 echo " }," >> $2 | 101 echo " }," >> $2 |
| 92 elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then | 102 elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 make_clean | 455 make_clean |
| 446 make libvpx_srcs.txt target=libs $config > /dev/null | 456 make libvpx_srcs.txt target=libs $config > /dev/null |
| 447 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic | 457 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic |
| 448 | 458 |
| 449 echo "Remove temporary directory." | 459 echo "Remove temporary directory." |
| 450 cd $BASE_DIR | 460 cd $BASE_DIR |
| 451 rm -rf $TEMP_DIR | 461 rm -rf $TEMP_DIR |
| 452 | 462 |
| 453 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 463 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
| 454 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 464 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |