OLD | NEW |
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 ## |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 258 [789]|10|11|12) |
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 21 matching lines...) Expand all Loading... |
290 ;; | 290 ;; |
291 9) sln_vers="10.00" | 291 9) sln_vers="10.00" |
292 sln_vers_str="Visual Studio 2008" | 292 sln_vers_str="Visual Studio 2008" |
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" |
| 301 sln_vers_str="Visual Studio 2013" |
| 302 ;; |
300 esac | 303 esac |
301 case "${vs_ver:-8}" in | 304 case "${vs_ver:-8}" in |
302 [789]) | 305 [789]) |
303 sfx=vcproj | 306 sfx=vcproj |
304 ;; | 307 ;; |
305 10|11) | 308 10|11|12) |
306 sfx=vcxproj | 309 sfx=vcxproj |
307 ;; | 310 ;; |
308 esac | 311 esac |
309 | 312 |
310 for f in "${file_list[@]}"; do | 313 for f in "${file_list[@]}"; do |
311 parse_project $f | 314 parse_project $f |
312 done | 315 done |
313 cat >${outfile} <<EOF | 316 cat >${outfile} <<EOF |
314 Microsoft Visual Studio Solution File, Format Version $sln_vers${EOLDOS} | 317 Microsoft Visual Studio Solution File, Format Version $sln_vers${EOLDOS} |
315 # $sln_vers_str${EOLDOS} | 318 # $sln_vers_str${EOLDOS} |
316 EOF | 319 EOF |
317 for proj in ${proj_list}; do | 320 for proj in ${proj_list}; do |
318 process_project $proj >>${outfile} | 321 process_project $proj >>${outfile} |
319 done | 322 done |
320 process_global >>${outfile} | 323 process_global >>${outfile} |
321 process_makefile >${mkoutfile} | 324 process_makefile >${mkoutfile} |
OLD | NEW |