diff options
author | Peter Foley <pefoley2@verizon.net> | 2012-08-16 13:23:56 -0400 |
---|---|---|
committer | Peter Foley <pefoley2@verizon.net> | 2012-08-16 17:54:53 -0400 |
commit | fdcd85087147e0f016f667706a27899f49e836f0 (patch) | |
tree | bdee723c454cdc8d79f6bcf1849059c094a68535 | |
parent | add x-comment for translators (diff) | |
download | core-fdcd85087147e0f016f667706a27899f49e836f0.tar.gz core-fdcd85087147e0f016f667706a27899f49e836f0.zip |
enable build with Visual Studio 2012
Change-Id: I95e5974e4f109eb8882f7260d19c439a86931e64
-rw-r--r-- | configure.in | 18 | ||||
-rwxr-xr-x | external/msvcp110/README_msvcX110.dll | 2 | ||||
-rwxr-xr-x | oowintool | 16 |
3 files changed, 29 insertions, 7 deletions
diff --git a/configure.in b/configure.in index a27035062bd3..39b78a68b9e4 100644 --- a/configure.in +++ b/configure.in @@ -2969,13 +2969,13 @@ if test "$_os" = "WINNT"; then AC_MSG_RESULT([$with_cl_home]) dnl =========================================================== - dnl Check for mspdb80.dll/mspdb100.dll + dnl Check for mspdb80.dll/mspdb100.dll/mspdb110.dll dnl =========================================================== - dnl MSVS 2008/10 Compiler + dnl MSVS 2008/10/12 Compiler if test -n "$with_mspdb_path";then with_mspdb_path=`cygpath -u "$with_mspdb_path"` fi - if test -e "$with_mspdb_path/mspdb80.dll" -o -e "$with_mspdb_path/mspdb100.dll"; then + if test -e "$with_mspdb_path/mspdb80.dll" -o -e "$with_mspdb_path/mspdb100.dll" -o -e "$with_mspdb_path/mspdb110.dll"; then MSPDB_PATH="$with_mspdb_path" fi dnl MSVS 2008 case @@ -2990,16 +2990,21 @@ if test "$_os" = "WINNT"; then if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb100.dll"; then MSPDB_PATH="$with_cl_home/../Common7/IDE" fi + dnl MSVS 2012 case + if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb110.dll"; then + MSPDB_PATH="$with_cl_home/../Common7/IDE" + fi if test -z "$MSPDB_PATH";then dnl AC_PATH_PROG only checks if MSPDB_PATH is still empty AC_PATH_PROG(MSPDB_PATH, mspdb80.dll) AC_PATH_PROG(MSPDB_PATH, mspdb100.dll) + AC_PATH_PROG(MSPDB_PATH, mspdb110.dll) MSPDB_PATH=`dirname "$MSPDB_PATH"` fi if test -z "$MSPDB_PATH"; then - AC_MSG_ERROR([You need a mspdb80.dllor mspdb100.dll, make sure it is in the path or use --with-mspdb-path]) + AC_MSG_ERROR([You need a mspdb80.dll or mspdb100.dll or mspdb110.dll, make sure it is in the path or use --with-mspdb-path]) fi MSPDB_PATH=`cygpath -d "$MSPDB_PATH"` MSPDB_PATH=`cygpath -u "$MSPDB_PATH"` @@ -3047,7 +3052,10 @@ if test "$_os" = "WINNT"; then printf (\"%04d\",vertoken[[i]] ) } }"` - if test "$CCNUMVER" -ge "001600000000"; then + if test "$CCNUMVER" -ge "001700000000"; then + COMEX=14 + MSVSVER=2012 + elif test "$CCNUMVER" -ge "001600000000"; then COMEX=13 MSVSVER=2010 elif test "$CCNUMVER" -ge "001500000000"; then diff --git a/external/msvcp110/README_msvcX110.dll b/external/msvcp110/README_msvcX110.dll new file mode 100755 index 000000000000..51e17695da65 --- /dev/null +++ b/external/msvcp110/README_msvcX110.dll @@ -0,0 +1,2 @@ +Put msvcp110.dll, msvcr110.dll in this directory for Windows builds using a +VS 2012 / VC 11.0 compiler. diff --git a/oowintool b/oowintool index de929cb026c3..9e40a78102f7 100755 --- a/oowintool +++ b/oowintool @@ -151,10 +151,22 @@ my %msvc_2010 = ( 'dll_path' => 'redist/x86/Microsoft.VC100.CRT', 'dll_suffix' => '100' ); +my %msvs_2012 = ( + 'ver' => '11.0', + 'key' => 'Microsoft/VisualStudio/11.0/Setup/VS/ProductDir', + 'dll_path' => 'VC/redist/x86/Microsoft.VC110.CRT', + 'dll_suffix' => '110' +); +my %msvc_2012 = ( + 'ver' => '11.0', + 'key' => 'Microsoft/VisualStudio/11.0/Setup/VC/ProductDir', + 'dll_path' => 'redist/x86/Microsoft.VC110.CRT', + 'dll_suffix' => '110' +); sub find_msvs() { - my @ms_versions = ( \%msvs_2008, \%msvs_express_2008, \%msvs_2010 ); + my @ms_versions = ( \%msvs_2008, \%msvs_express_2008, \%msvs_2012, \%msvs_2010 ); for $ver (@ms_versions) { my $install = reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/" . $ver->{'key'}); @@ -168,7 +180,7 @@ sub find_msvs() sub find_msvc() { - my @ms_versions = ( \%msvc_2008, \%msvc_express_2008, \%msvc_2010 ); + my @ms_versions = ( \%msvc_2008, \%msvc_express_2008, \%msvc_2012, \%msvc_2010 ); for $ver (@ms_versions) { my $install = reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/" . $ver->{'key'}); |