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

Side by Side Diff: generate_gypi.sh

Issue 757313004: Remove all remaining obj_int_extract code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years 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 | « copy_obj.py ('k') | libvpx.gyp » ('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, .gni files and files in the 7 # This script is used to generate .gypi, .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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 # different compilation flags are required. 209 # different compilation flags are required.
210 function convert_srcs_to_project_files { 210 function convert_srcs_to_project_files {
211 # Do the following here: 211 # Do the following here:
212 # 1. Filter .c, .h, .s, .S and .asm files. 212 # 1. Filter .c, .h, .s, .S and .asm files.
213 # 2. Move certain files to a separate include to allow applying different 213 # 2. Move certain files to a separate include to allow applying different
214 # compiler options. 214 # compiler options.
215 # 3. Replace .asm.s to .asm because gyp will do the conversion. 215 # 3. Replace .asm.s to .asm because gyp will do the conversion.
216 216
217 local source_list=$(grep -E '(\.c|\.h|\.S|\.s|\.asm)$' $1) 217 local source_list=$(grep -E '(\.c|\.h|\.S|\.s|\.asm)$' $1)
218 218
219 # _offsets are used in pre-processing to generate files for assembly. They are
220 # not part of the compiled library.
221 source_list=$(echo "$source_list" | grep -v '_offsets\.c')
222
223 # Not sure why vpx_config is not included. 219 # Not sure why vpx_config is not included.
224 source_list=$(echo "$source_list" | grep -v 'vpx_config\.c') 220 source_list=$(echo "$source_list" | grep -v 'vpx_config\.c')
225 221
226 # The actual ARM files end in .asm. We have rules to translate them to .S 222 # The actual ARM files end in .asm. We have rules to translate them to .S
227 source_list=$(echo "$source_list" | sed s/\.asm\.s$/.asm/) 223 source_list=$(echo "$source_list" | sed s/\.asm\.s$/.asm/)
228 224
229 # Select all x86 files ending with .c 225 # Select all x86 files ending with .c
230 local intrinsic_list=$(echo "$source_list" | \ 226 local intrinsic_list=$(echo "$source_list" | \
231 egrep 'vp[89]/(encoder|decoder|common)/x86/' | \ 227 egrep 'vp[89]/(encoder|decoder|common)/x86/' | \
232 egrep '(mmx|sse2|sse3|ssse3|sse4|avx|avx2).c$') 228 egrep '(mmx|sse2|sse3|ssse3|sse4|avx|avx2).c$')
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 make_clean 518 make_clean
523 make libvpx_srcs.txt target=libs $config > /dev/null 519 make libvpx_srcs.txt target=libs $config > /dev/null
524 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_generic 520 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_generic
525 521
526 echo "Remove temporary directory." 522 echo "Remove temporary directory."
527 cd $BASE_DIR 523 cd $BASE_DIR
528 rm -rf $TEMP_DIR 524 rm -rf $TEMP_DIR
529 525
530 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? 526 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel?
531 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? 527 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW
« no previous file with comments | « copy_obj.py ('k') | libvpx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698