summaryrefslogtreecommitdiff
path: root/set_soenv.in
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-16 20:45:18 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-16 20:57:08 +0200
commit9cf5f41bedbb0830716f2f62deadfae30d675796 (patch)
treeada3212a21fbc4edabec1302df93f6aab604fafc /set_soenv.in
parent7f761bded4d83f2dfbaacec140a1e3fd15e8aac1 (diff)
Cleanups and hacks on the start of support for 64-bit Windows build
* configure.in: Look for the x64 assembler ml64.exe when building 64-bit binaries, not ml.exe. Use the 64-bit tools in VC/bin/amd64, not the 32-bit cross-compiling tools in VC/bin/x86_amd64. We can currently build 64-bit only on a 64-bit OS anyway, for instance because of the unit tests. * set_soenv.in: Set CPUNAME, CPU and OUTPATH appropriately for 64-bit build. We end up with "wntsmcx12" for 64-bit MSVC 2008 build. Drop sections for no longer supported MSVC versions. Don't talk about ".NET 2005" etc, ".NET" was part of the MS suite product name only in the 2003 version. Add Emacs and vim mode lines.
Diffstat (limited to 'set_soenv.in')
-rwxr-xr-xset_soenv.in107
1 files changed, 45 insertions, 62 deletions
diff --git a/set_soenv.in b/set_soenv.in
index feeb83d1c14b..0533441b722e 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -683,7 +683,9 @@ elsif ( $platform =~ m/cygwin/ )
$FRAME_HOME = PathFormat('@FRAME_HOME@');
$USE_NEW_SDK = "TRUE";
$CPUNAME = "INTEL";
+ $CPUNAME = "X86_64" if $CL_X64;
$CPU = "I";
+ $CPU = "X" if $CL_X64;
$GUI = "WNT";
$GUIBASE = "WIN";
$GVER = "NT351";
@@ -693,7 +695,7 @@ elsif ( $platform =~ m/cygwin/ )
$use_shl_versions = "TRUE";
$wps = ';'; # Windows style path seperator
if ( $MINGW eq "yes" )
- { # At the moment this implies the use of tcsh
+ { # At the moment this implies the use of tcsh, wtf?
print "Setting Windows NT cygwin MinGW specific values... ";
$FLIPCMD = "slfl.pl";
$PATH_SEPERATOR = ';';
@@ -711,42 +713,35 @@ elsif ( $platform =~ m/cygwin/ )
$COMPATH = PathFormat('@COMPATH@');
$COM = "MSC";
$OUTPATH = "wntmsci@COMEX@";
+ $OUTPATH = "wntmscx@COMEX@" if $CL_X64;
$INPATH = $OUTPATH.$PROEXT;
$COMEX = '@COMEX@';
- if ( "@COMEX@" eq "10" ) { # .NET 2003 needs M1310
- $CVER = "M1310";
- $ATL_LIB = $COMPATH.$ds."atlmfc".$ds."lib";
- $ATL_INCLUDE = $COMPATH.$ds."atlmfc".$ds."include";
- $MFC_LIB = "";
- $MFC_INCLUDE = "";
- } elsif ( "@COMEX@" ge "11" ) { # .NET 2005 needs M1400
- if ( "@COMEX@" eq "11" ) {
- $CVER = "M1400";
- } elsif ( "@COMEX@" eq "12" ) {
- $CVER = "M1500";
+ if ( "@COMEX@" eq "12" ) {
+ $CVER = "M1500";
} elsif ( "@COMEX@" eq "13" ) {
$CVER = "M1600";
+ } else { # Unsupported
+ die "Unsupported compiler version.\n";
+ }
+ if ( "@DISABLE_ACTIVEX@" ) {
+ $ATL_LIB = $PSDK_HOME.$ds."lib"; # Doesn't exist for VSE
+ $ATL_INCLUDE = $PSDK_HOME.$ds."include".$ds."atl";
+ $MFC_LIB = $PSDK_HOME.$ds."lib"; # Doesn't exist for VSE
+ $MFC_INCLUDE = $PSDK_HOME.$ds."include".$ds."mfc";
+ } else {
$ATL_LIB = $COMPATH.$ds."atlmfc".$ds."lib";
$ATL_INCLUDE = $COMPATH.$ds."atlmfc".$ds."include";
- } else { # Unsupported
- die "Unsupported value for COMEX variable.\n";
- }
- if ( "@DISABLE_ACTIVEX@" ) {
- $ATL_LIB = $PSDK_HOME.$ds."lib"; # Doesn't exist for VSE
- $ATL_INCLUDE = $PSDK_HOME.$ds."include".$ds."atl";
- $MFC_LIB = $PSDK_HOME.$ds."lib"; # Doesn't exist for VSE
- $MFC_INCLUDE = $PSDK_HOME.$ds."include".$ds."mfc";
- } else {
- $ATL_LIB = $COMPATH.$ds."atlmfc".$ds."lib";
- $ATL_INCLUDE = $COMPATH.$ds."atlmfc".$ds."include";
- $MFC_LIB = $COMPATH.$ds."atlmfc".$ds."lib";
- $MFC_INCLUDE = $PSDK_HOME.$ds."include".$ds."mfc";
- }
+ $MFC_LIB = $COMPATH.$ds."atlmfc".$ds."lib";
+ $MFC_INCLUDE = $PSDK_HOME.$ds."include".$ds."mfc";
+ }
+ if ($CL_X64) {
+ $ATL_LIB .= $ds."amd64";
+ $MFC_LIB .= $ds."amd64";
}
- print "Setting W32 build with bash shell specific values... ";
- # No speacial treatment for CC an CXX anymore.
- $FLIPCMD = "slfl.pl";
- $PATH_SEPERATOR = ';';
+ print "Setting Windows build specific values... ";
+ # No speacial treatment for CC an CXX anymore.
+ $FLIPCMD = "slfl.pl";
+ $PATH_SEPERATOR = ';';
}
}
elsif ( $platform =~ m/os2/ )
@@ -1115,12 +1110,6 @@ if ($platform =~ m/cygwin|os2/)
$ILIB .= $wps.$FRAME_HOME.$LIB;
if ( '@ENABLE_DIRECTX@' ne "" ) {
$ILIB .= $wps.$DIRECTXSDK_LIB;
- if ( '@COMEX@' eq "10" ) {
- # .NET2003 provides and compiles against DirectX 5 libraries and is
- # hereby still Win9x compatible.
- $ILIB .= $wps.'$COMPATH'.$ds.'PlatformSDK'.$LIB;
- $USE_DIRECTX5 = "YES";
- }
}
# ILIB needs to use '\' directory seperators;
$ILIB = WinPath( $ILIB, ";" );
@@ -1202,32 +1191,31 @@ elsif ($platform =~ m/cygwin/)
# Add path to compiler
$tmppath = CygFormat($COMPATH).$BIN;
+ $tmppath .= $ds."amd64" if $CL_X64;
$tmppath =~ s/^\/\//\//;
$PATH .= $ps.$tmppath;
if ( $COM eq "MSC" ) {
$tmppath = CygFormat($MSPDB_PATH);
- # for .NET to find mspdb71.dll (needed by CL.EXE C/C++ Compiler)
- if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
- $PATH .= $ps.$tmppath;
- }
- if ( ( $COMEX ge "10" ) ) {
- # .NET needs midl.exe
- $tmppath = CygFormat($MIDL_PATH);
- if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
- $PATH .= $ps.$tmppath;
- }
- # .NET needs csc.exe
- $tmppath = CygFormat($CSC_PATH);
- if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
- $PATH .= $ps.$tmppath;
- }
- # Native installer needs some files if the Windows Installer SDK
- $tmppath = CygFormat($PSDK_HOME);
- if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
- $PATH .= $ps.$tmppath.$BIN;
- }
- }
+ # for MSVC to find mspdb71.dll
+ if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
+ $PATH .= $ps.$tmppath;
+ }
+ # need midl.exe
+ $tmppath = CygFormat($MIDL_PATH);
+ if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
+ $PATH .= $ps.$tmppath;
+ }
+ # needs csc.exe
+ $tmppath = CygFormat($CSC_PATH);
+ if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
+ $PATH .= $ps.$tmppath;
+ }
+ # Installer needs some files if the Windows Installer SDK
+ $tmppath = CygFormat($PSDK_HOME);
+ if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
+ $PATH .= $ps.$tmppath.$BIN;
+ }
} else { # Mingw is different
# Native installer needs some files if the Windows Installer SDK
$tmppath = CygFormat($PSDK_HOME);
@@ -1504,11 +1492,6 @@ elsif ($platform =~ m/cygwin/)
$I.'$COMPATH'.$ds."include";
if ( '@ENABLE_DIRECTX@' ne "" ) {
$SOLARINC .= $I.PathFormat('@DIRECTXSDK_HOME@').$INCLUDE;
- if ( '@COMEX@' eq "10" ) {
- # .NET2003 provides and compiles against DirectX 5 libraries and is
- # hereby still Win9x compatible.
- $SOLARINC .= $I.'$COMPATH'.$ds.'PlatformSDK'.$ds."include";
- }
}
}
elsif ( $COM eq "GCC" )