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

Side by Side Diff: generate_gypi.sh

Issue 131103019: Use target_arch_full consistently (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 10 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 | « no previous file | 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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 # $2 - Output file 61 # $2 - Output file
62 # $3 - Target name 62 # $3 - Target name
63 # $4 - Compiler flag 63 # $4 - Compiler flag
64 function write_target_definition { 64 function write_target_definition {
65 declare -a sources_list=("${!1}") 65 declare -a sources_list=("${!1}")
66 66
67 echo " {" >> $2 67 echo " {" >> $2
68 echo " 'target_name': '$3'," >> $2 68 echo " 'target_name': '$3'," >> $2
69 echo " 'type': 'static_library'," >> $2 69 echo " 'type': 'static_library'," >> $2
70 echo " 'include_dirs': [" >> $2 70 echo " 'include_dirs': [" >> $2
71 echo " 'source/config/<(OS_CATEGORY)/<(target_arch)'," >> $2 71 echo " 'source/config/<(OS_CATEGORY)/<(target_arch_full)'," >> $2
72 echo " '<(libvpx_source)'," >> $2 72 echo " '<(libvpx_source)'," >> $2
73 echo " ]," >> $2 73 echo " ]," >> $2
74 echo " 'sources': [" >> $2 74 echo " 'sources': [" >> $2
75 for f in $sources_list 75 for f in $sources_list
76 do 76 do
77 echo " '<(libvpx_source)/$f'," >> $2 77 echo " '<(libvpx_source)/$f'," >> $2
78 done 78 done
79 echo " ]," >> $2 79 echo " ]," >> $2
80 echo " 'conditions': [" >> $2 80 echo " 'conditions': [" >> $2
81 echo " ['os_posix==1 and OS!=\"mac\"', {" >> $2 81 echo " ['os_posix==1 and OS!=\"mac\"', {" >> $2
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 make_clean 411 make_clean
412 make libvpx_srcs.txt target=libs $config > /dev/null 412 make libvpx_srcs.txt target=libs $config > /dev/null
413 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl 413 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl
414 414
415 echo "Remove temporary directory." 415 echo "Remove temporary directory."
416 cd $BASE_DIR 416 cd $BASE_DIR
417 rm -rf $TEMP_DIR 417 rm -rf $TEMP_DIR
418 418
419 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? 419 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel?
420 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? 420 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698