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

Side by Side Diff: source/libvpx/build/make/gen_msvs_sln.sh

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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 | « source/libvpx/build/make/gen_msvs_proj.sh ('k') | source/libvpx/build/make/gen_msvs_vcxproj.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 1 #!/bin/bash
2 ## 2 ##
3 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 ## 4 ##
5 ## Use of this source code is governed by a BSD-style license 5 ## Use of this source code is governed by a BSD-style license
6 ## that can be found in the LICENSE file in the root of the source 6 ## that can be found in the LICENSE file in the root of the source
7 ## tree. An additional intellectual property rights grant can be found 7 ## tree. An additional intellectual property rights grant can be found
8 ## in the file PATENTS. All contributing project authors may 8 ## in the file PATENTS. All contributing project authors may
9 ## be found in the AUTHORS file in the root of the source tree. 9 ## be found in the AUTHORS file in the root of the source tree.
10 ## 10 ##
11 11
12 12
13 self=$0 13 self=$0
14 self_basename=${self##*/} 14 self_basename=${self##*/}
15 EOL=$'\n' 15 EOL=$'\n'
16 EOLDOS=$'\r' 16 EOLDOS=$'\r'
17 17
18 show_help() { 18 show_help() {
19 cat <<EOF 19 cat <<EOF
20 Usage: ${self_basename} [options] file1 [file2 ...] 20 Usage: ${self_basename} [options] file1 [file2 ...]
21 21
22 This script generates a Visual Studio 2005 solution file from a list of project 22 This script generates a Visual Studio solution file from a list of project
23 files. 23 files.
24 24
25 Options: 25 Options:
26 --help Print this message 26 --help Print this message
27 --out=outfile Redirect output to a file 27 --out=outfile Redirect output to a file
28 --ver=version Version (7,8,9,10,11) of visual studio to genera te for 28 --ver=version Version (7,8,9,10,11,12,14) of visual studio to generate for
29 --target=isa-os-cc Target specifier 29 --target=isa-os-cc Target specifier
30 EOF 30 EOF
31 exit 1 31 exit 1
32 } 32 }
33 33
34 die() { 34 die() {
35 echo "${self_basename}: $@" >&2 35 echo "${self_basename}: $@" >&2
36 [ -f "${outfile}" ] && rm -f ${outfile}{,.mk} 36 [ -f "${outfile}" ] && rm -f ${outfile}{,.mk}
37 exit 1 37 exit 1
38 } 38 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 optval="${opt#*=}" 248 optval="${opt#*=}"
249 case "$opt" in 249 case "$opt" in
250 --help|-h) show_help 250 --help|-h) show_help
251 ;; 251 ;;
252 --out=*) outfile="${optval}"; mkoutfile="${optval}".mk 252 --out=*) outfile="${optval}"; mkoutfile="${optval}".mk
253 ;; 253 ;;
254 --dep=*) eval "${optval%%:*}_deps=\"\${${optval%%:*}_deps} ${optval##*:}\"" 254 --dep=*) eval "${optval%%:*}_deps=\"\${${optval%%:*}_deps} ${optval##*:}\""
255 ;; 255 ;;
256 --ver=*) vs_ver="$optval" 256 --ver=*) vs_ver="$optval"
257 case $optval in 257 case $optval in
258 [789]|10|11|12) 258 [789]|10|11|12|14)
259 ;; 259 ;;
260 *) die Unrecognized Visual Studio Version in $opt 260 *) die Unrecognized Visual Studio Version in $opt
261 ;; 261 ;;
262 esac 262 esac
263 ;; 263 ;;
264 --ver=*) vs_ver="$optval" 264 --ver=*) vs_ver="$optval"
265 case $optval in 265 case $optval in
266 7) sln_vers="8.00" 266 7) sln_vers="8.00"
267 sln_vers_str="Visual Studio .NET 2003" 267 sln_vers_str="Visual Studio .NET 2003"
268 ;; 268 ;;
(...skipping 24 matching lines...) Expand all
293 ;; 293 ;;
294 10) sln_vers="11.00" 294 10) sln_vers="11.00"
295 sln_vers_str="Visual Studio 2010" 295 sln_vers_str="Visual Studio 2010"
296 ;; 296 ;;
297 11) sln_vers="12.00" 297 11) sln_vers="12.00"
298 sln_vers_str="Visual Studio 2012" 298 sln_vers_str="Visual Studio 2012"
299 ;; 299 ;;
300 12) sln_vers="12.00" 300 12) sln_vers="12.00"
301 sln_vers_str="Visual Studio 2013" 301 sln_vers_str="Visual Studio 2013"
302 ;; 302 ;;
303 14) sln_vers="14.00"
304 sln_vers_str="Visual Studio 2015"
305 ;;
303 esac 306 esac
304 case "${vs_ver:-8}" in 307 case "${vs_ver:-8}" in
305 [789]) 308 [789])
306 sfx=vcproj 309 sfx=vcproj
307 ;; 310 ;;
308 10|11|12) 311 10|11|12|14)
309 sfx=vcxproj 312 sfx=vcxproj
310 ;; 313 ;;
311 esac 314 esac
312 315
313 for f in "${file_list[@]}"; do 316 for f in "${file_list[@]}"; do
314 parse_project $f 317 parse_project $f
315 done 318 done
316 cat >${outfile} <<EOF 319 cat >${outfile} <<EOF
317 Microsoft Visual Studio Solution File, Format Version $sln_vers${EOLDOS} 320 Microsoft Visual Studio Solution File, Format Version $sln_vers${EOLDOS}
318 # $sln_vers_str${EOLDOS} 321 # $sln_vers_str${EOLDOS}
319 EOF 322 EOF
320 for proj in ${proj_list}; do 323 for proj in ${proj_list}; do
321 process_project $proj >>${outfile} 324 process_project $proj >>${outfile}
322 done 325 done
323 process_global >>${outfile} 326 process_global >>${outfile}
324 process_makefile >${mkoutfile} 327 process_makefile >${mkoutfile}
OLDNEW
« no previous file with comments | « source/libvpx/build/make/gen_msvs_proj.sh ('k') | source/libvpx/build/make/gen_msvs_vcxproj.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698