Add vs9 targets.
authorTom Finegan <tomfinegan@google.com>
Thu, 22 Jul 2010 17:34:25 +0000 (13:34 -0400)
committerTom Finegan <tomfinegan@google.com>
Thu, 22 Jul 2010 17:44:16 +0000 (13:44 -0400)
Add targets x86-win32-vs9 and x86_64-win64-vs9 for support of Visual
Studio 2008-- this removes the need to convert the vs8 projects before
using them within the IDE.

Change-Id: Idb83e2ae701e07d98db1be71638280a493d770a2

build/make/gen_msvs_proj.sh
build/make/gen_msvs_sln.sh
configure

index 1398bfb..5181d32 100755 (executable)
@@ -206,7 +206,7 @@ for opt in "$@"; do
     ;;
     --ver=*) vs_ver="$optval"
              case $optval in
-             [78])
+             [789])
              ;;
              *) die Unrecognized Visual Studio Version in $opt
              ;;
@@ -248,6 +248,8 @@ case "${vs_ver:-8}" in
     ;;
     8) vs_ver_id="8.00"
     ;;
+    9) vs_ver_id="9.00"
+    ;;
 esac
 
 [ -n "$name" ] || die "Project name (--name) must be specified!"
index b0904f9..f377aa8 100755 (executable)
@@ -25,7 +25,7 @@ files.
 Options:
     --help                      Print this message
     --out=outfile               Redirect output to a file
-    --ver=version               Version (7,8) of visual studio to generate for
+    --ver=version               Version (7,8,9) of visual studio to generate for
     --target=isa-os-cc          Target specifier
 EOF
     exit 1
@@ -224,7 +224,7 @@ for opt in "$@"; do
     ;;
     --ver=*) vs_ver="$optval"
              case $optval in
-             [78])
+             [789])
              ;;
              *) die Unrecognized Visual Studio Version in $opt
              ;;
@@ -235,7 +235,7 @@ for opt in "$@"; do
              7) sln_vers="8.00"
                 sln_vers_str="Visual Studio .NET 2003"
              ;;
-             8)
+             [89])
              ;;
              *) die "Unrecognized Visual Studio Version '$optval' in $opt"
              ;;
@@ -257,6 +257,9 @@ case "${vs_ver:-8}" in
     8) sln_vers="9.00"
        sln_vers_str="Visual Studio 2005"
     ;;
+    9) sln_vers="10.00"
+       sln_vers_str="Visual Studio 2008"
+    ;;
 esac
 
 for f in "${file_list[@]}"; do
index d2dfb6b..85230d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -107,11 +107,13 @@ all_platforms="${all_platforms} x86-solaris-gcc"
 all_platforms="${all_platforms} x86-win32-gcc"
 all_platforms="${all_platforms} x86-win32-vs7"
 all_platforms="${all_platforms} x86-win32-vs8"
+all_platforms="${all_platforms} x86-win32-vs9"
 all_platforms="${all_platforms} x86_64-darwin9-gcc"
 all_platforms="${all_platforms} x86_64-linux-gcc"
 all_platforms="${all_platforms} x86_64-linux-icc"
 all_platforms="${all_platforms} x86_64-solaris-gcc"
 all_platforms="${all_platforms} x86_64-win64-vs8"
+all_platforms="${all_platforms} x86_64-win64-vs9"
 all_platforms="${all_platforms} universal-darwin8-gcc"
 all_platforms="${all_platforms} universal-darwin9-gcc"
 all_platforms="${all_platforms} generic-gnu"