set_soenv.in (386ca866) set_soenv.in (edd74ba5)
1#!@PERL@ -w
2#
3###############################################################
4#
5# Licensed to the Apache Software Foundation (ASF) under one
6# or more contributor license agreements. See the NOTICE file
7# distributed with this work for additional information
8# regarding copyright ownership. The ASF licenses this file

--- 666 unchanged lines hidden (view full) ---

675 $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
676 $MIDL_PATH = PathFormat('@MIDL_PATH@');
677 $CSC_PATH = PathFormat('@CSC_PATH@');
678 $PSDK_HOME = PathFormat('@PSDK_HOME@');
679 $DIRECTXSDK_LIB = PathFormat('@DIRECTXSDK_LIB@');
680 $USE_DIRECTX5 = "";
681 $FRAME_HOME = PathFormat('@FRAME_HOME@');
682 $USE_NEW_SDK = "TRUE";
1#!@PERL@ -w
2#
3###############################################################
4#
5# Licensed to the Apache Software Foundation (ASF) under one
6# or more contributor license agreements. See the NOTICE file
7# distributed with this work for additional information
8# regarding copyright ownership. The ASF licenses this file

--- 666 unchanged lines hidden (view full) ---

675 $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
676 $MIDL_PATH = PathFormat('@MIDL_PATH@');
677 $CSC_PATH = PathFormat('@CSC_PATH@');
678 $PSDK_HOME = PathFormat('@PSDK_HOME@');
679 $DIRECTXSDK_LIB = PathFormat('@DIRECTXSDK_LIB@');
680 $USE_DIRECTX5 = "";
681 $FRAME_HOME = PathFormat('@FRAME_HOME@');
682 $USE_NEW_SDK = "TRUE";
683 $CPUNAME = "INTEL";
684 $CPU = "I";
685 $GUI = "WNT";
686 $GUIBASE = "WIN";
687 $GVER = "NT351";
688 $OS = "WNT";
689 $DYNAMIC_CRT = "TRUE";
690 $SET_EXCEPTIONS = "TRUE";
691 $use_shl_versions = "TRUE";
692 $wps = ';'; # Windows style path seperator
693 if ( $MINGW eq "yes" )
694 {
695 print "Setting Windows NT cygwin MinGW specific values... ";
696 $FLIPCMD = "slfl.pl";
697 $PATH_SEPERATOR = ';';
698 $outfile = "winmingw.set";
699 $COMPATH = PathFormat('@COMPATH@/bin');
700 $COMPATH =~ s/\/bin$//i;
683 $GUI = "WNT";
684 $GUIBASE = "WIN";
685 $GVER = "NT351";
686 $OS = "WNT";
687 $DYNAMIC_CRT = "TRUE";
688 $SET_EXCEPTIONS = "TRUE";
689 $use_shl_versions = "TRUE";
690 $wps = ';'; # Windows style path seperator
691 if ( $MINGW eq "yes" )
692 {
693 print "Setting Windows NT cygwin MinGW specific values... ";
694 $FLIPCMD = "slfl.pl";
695 $PATH_SEPERATOR = ';';
696 $outfile = "winmingw.set";
697 $COMPATH = PathFormat('@COMPATH@/bin');
698 $COMPATH =~ s/\/bin$//i;
699 $CPUNAME = "INTEL";
700 $CPU = "I";
701 $CVER = "C341";
702 $OUTPATH = "wntgcci";
701 $CVER = "C341";
702 $OUTPATH = "wntgcci";
703 $INPATH = $OUTPATH.$PROEXT;
704 $ATL_INCLUDE = '$SOLARVER'.$ds.'$INPATH'.$ds."inc".$ds."external".$ds."mingw".$ds."include".$ds."atl". " ".'$PSDK_HOME'.$ds."include".$ds."atl";
705 }
706 else # The MSVC section starts here
703 $ATL_INCLUDE = '$SOLARVER'.$ds.'$INPATH'.$ds."inc".$ds."external".$ds."mingw".$ds."include".$ds."atl". " ".'$PSDK_HOME'.$ds."include".$ds."atl";
704 }
705 else # The MSVC section starts here
707 { $outfile = "winenv.set";
706 {
708 $COMPATH = PathFormat('@COMPATH@');
709 $CXX_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/cl.exe');
710 $LINK_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/link.exe');
711 $LIBMGR_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/lib.exe');
707 $COMPATH = PathFormat('@COMPATH@');
708 $CXX_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/cl.exe');
709 $LINK_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/link.exe');
710 $LIBMGR_X64_BINARY = PathFormat('@COMPATH@/bin/amd64/lib.exe');
712 $OUTPATH = "wntmsci@COMEX@";
713 $INPATH = $OUTPATH.$PROEXT;
714 $COMEX = '@COMEX@';
715 if ( "@COMEX@" eq "10" ) { # .NET 2003 needs M1310
716 $CVER = "M1310";
717 } elsif ( "@COMEX@" ge "11" ) { # .NET 2005 needs M1400
718 if ( "@COMEX@" eq "11" ) {
719 $CVER = "M1400";
720 } elsif ( "@COMEX@" eq "12" ) {
721 $CVER = "M1500";
722 } else { # Unsupported
723 die "Unsupported value for COMEX variable.\n";
724 }
725 }
711 $COMEX = '@COMEX@';
712 if ( "@COMEX@" eq "10" ) { # .NET 2003 needs M1310
713 $CVER = "M1310";
714 } elsif ( "@COMEX@" ge "11" ) { # .NET 2005 needs M1400
715 if ( "@COMEX@" eq "11" ) {
716 $CVER = "M1400";
717 } elsif ( "@COMEX@" eq "12" ) {
718 $CVER = "M1500";
719 } else { # Unsupported
720 die "Unsupported value for COMEX variable.\n";
721 }
722 }
726 print "Setting W32 build with bash shell specific values... ";
727 # No special treatment for CC and CXX anymore.
728 $FLIPCMD = "slfl.pl";
729 $PATH_SEPERATOR = ';';
723 # No special treatment for CC and CXX anymore.
724 $FLIPCMD = "slfl.pl";
725 $PATH_SEPERATOR = ';';
726 if ( $platform =~ m/^i[3456]86/ || ( ( $platform =~ m/^x86_64/ ) && ( "@BUILD_WIN64@" ne "TRUE" ) ) ) {
727 print "Setting Windows x86 build with bash shell specific values... ";
728 $outfile = "winenv.set";
729 $CPU = "I";
730 $CPUNAME = "INTEL";
731 $OUTPATH = "wntmsci@COMEX@";
732 } elsif ( $platform =~ m/^x86_64/ ) {
733 print "Setting Windows x86_64 build with bash shell specific values... ";
734 $outfile = "winAMD64Env.set";
735 $CPU = "X";
736 $CPUNAME = "X86_64";
737 $OUTPATH = "wntmscx@COMEX@";
738 } else {
739 print "Unsupported Windows architecture: $platform \n";
740 exit 1;
741 }
730 }
742 }
743 $INPATH = $OUTPATH.$PROEXT;
731}
732elsif ( $platform =~ m/os2/ )
733{
734 $COMPATH = PathFormat('@COMPATH@');
735 $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
736 $MIDL_PATH = PathFormat('@MIDL_PATH@');
737 $CSC_PATH = PathFormat('@CSC_PATH@');
738 $PSDK_HOME = PathFormat('@PSDK_HOME@');

--- 317 unchanged lines hidden (view full) ---

1056
1057 $JAVAHOME = '$JAVA_HOME';
1058
1059 $ILIB = $cur_dir;
1060
1061 # Mingw is different
1062 if ( "@COM@" eq "MSC" )
1063 { $ILIB .= $wps.$SOLARVER.$ds.$INPATH.$LIB.
744}
745elsif ( $platform =~ m/os2/ )
746{
747 $COMPATH = PathFormat('@COMPATH@');
748 $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
749 $MIDL_PATH = PathFormat('@MIDL_PATH@');
750 $CSC_PATH = PathFormat('@CSC_PATH@');
751 $PSDK_HOME = PathFormat('@PSDK_HOME@');

--- 317 unchanged lines hidden (view full) ---

1069
1070 $JAVAHOME = '$JAVA_HOME';
1071
1072 $ILIB = $cur_dir;
1073
1074 # Mingw is different
1075 if ( "@COM@" eq "MSC" )
1076 { $ILIB .= $wps.$SOLARVER.$ds.$INPATH.$LIB.
1064 $wps.$JAVA_HOME.$LIB.
1065 $wps.$PSDK_HOME.$LIB.
1077 $wps.$JAVA_HOME.$LIB;
1078 if ( ( $CPUNAME eq "INTEL" ) || ( ( $CPUNAME eq "X86_64" ) && ( "@BUILD_WIN64@" ne "TRUE" ) ) ) {
1079 $ILIB .= $wps.$PSDK_HOME.$LIB.
1066 $wps.$FRAME_HOME.$LIB.
1067 $wps.$COMPATH.$LIB;
1080 $wps.$FRAME_HOME.$LIB.
1081 $wps.$COMPATH.$LIB;
1082 } elsif ( $CPUNAME eq "X86_64" ) {
1083 $ILIB .= $wps.$PSDK_HOME.$LIB.$ds."x64".
1084 $wps.$FRAME_HOME.$LIB.
1085 $wps.$COMPATH.$LIB.$ds."amd64";
1086 } else {
1087 print "Unsupported Windows CPU: $CPUNAME\n";
1088 exit 1;
1089 }
1068 if ( '@ENABLE_DIRECTX@' ne "" ) {
1069 # We may have DirectX but not DirectDraw
1070 if ( '@ENABLE_DIRECT_DRAW@' ne "") {
1071 $ILIB .= $wps.$DIRECTXSDK_LIB;
1072 if ( '@COMEX@' eq "10" ) {
1073 # .NET2003 provides and compiles against DirectX 5 libraries and is
1074 # hereby still Win9x compatible.
1075 $ILIB .= $wps.'$COMPATH'.$ds.'PlatformSDK'.$LIB;

--- 73 unchanged lines hidden (view full) ---

1149 $PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."hotspot";
1150 }
1151 if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."client" ) {
1152 $PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."client";
1153 }
1154 }
1155
1156 # Add path to compiler
1090 if ( '@ENABLE_DIRECTX@' ne "" ) {
1091 # We may have DirectX but not DirectDraw
1092 if ( '@ENABLE_DIRECT_DRAW@' ne "") {
1093 $ILIB .= $wps.$DIRECTXSDK_LIB;
1094 if ( '@COMEX@' eq "10" ) {
1095 # .NET2003 provides and compiles against DirectX 5 libraries and is
1096 # hereby still Win9x compatible.
1097 $ILIB .= $wps.'$COMPATH'.$ds.'PlatformSDK'.$LIB;

--- 73 unchanged lines hidden (view full) ---

1171 $PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."hotspot";
1172 }
1173 if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."client" ) {
1174 $PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."client";
1175 }
1176 }
1177
1178 # Add path to compiler
1157 $tmppath = CygFormat($COMPATH).$BIN;
1158 $tmppath =~ s/^\/\//\//;
1159 $PATH .= $ps.$tmppath;
1160
1161 if ( "@COM@" eq "MSC" ) {
1179 if ( "@COM@" eq "MSC" ) {
1180 if ( ( $CPUNAME eq "INTEL" ) || ( ( $CPUNAME eq "X86_64") && ( "@BUILD_WIN64@" ne "TRUE" ) ) ) {
1181 $tmppath = CygFormat($COMPATH).$BIN;
1182 } elsif ( $CPUNAME eq "X86_64" ) {
1183 $tmppath = CygFormat($COMPATH).$BIN.$ds."amd64";
1184 } else {
1185 print "Unsupported Windows CPU: $CPU\n";
1186 exit 1;
1187 }
1188 $tmppath =~ s/^\/\//\//;
1189 $PATH .= $ps.$tmppath;
1190
1162 $tmppath = CygFormat($MSPDB_PATH);
1163 # for .NET to find mspdb71.dll (needed by CL.EXE C/C++ Compiler)
1164 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
1165 $PATH .= $ps.$tmppath;
1166 }
1167 if ( ( $COMEX ge "10" ) ) {
1168 # .NET needs midl.exe
1169 $tmppath = CygFormat($MIDL_PATH);

--- 7 unchanged lines hidden (view full) ---

1177 }
1178 # Native installer needs some files if the Windows Installer SDK
1179 $tmppath = CygFormat($PSDK_HOME);
1180 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1181 $PATH .= $ps.$tmppath.$BIN;
1182 }
1183 }
1184 } else { # Mingw is different
1191 $tmppath = CygFormat($MSPDB_PATH);
1192 # for .NET to find mspdb71.dll (needed by CL.EXE C/C++ Compiler)
1193 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
1194 $PATH .= $ps.$tmppath;
1195 }
1196 if ( ( $COMEX ge "10" ) ) {
1197 # .NET needs midl.exe
1198 $tmppath = CygFormat($MIDL_PATH);

--- 7 unchanged lines hidden (view full) ---

1206 }
1207 # Native installer needs some files if the Windows Installer SDK
1208 $tmppath = CygFormat($PSDK_HOME);
1209 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1210 $PATH .= $ps.$tmppath.$BIN;
1211 }
1212 }
1213 } else { # Mingw is different
1214 $tmppath = CygFormat($COMPATH).$BIN;
1215 $tmppath =~ s/^\/\//\//;
1216 $PATH .= $ps.$tmppath;
1217
1185 # Native installer needs some files if the Windows Installer SDK
1186 $tmppath = CygFormat($PSDK_HOME);
1187 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1188 $PATH .= $ps.$tmppath.$BIN;
1189 }
1190 }
1191
1192 if ( $ASM_PATH ne "ASM_IN_PATH" )

--- 1484 unchanged lines hidden ---
1218 # Native installer needs some files if the Windows Installer SDK
1219 $tmppath = CygFormat($PSDK_HOME);
1220 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1221 $PATH .= $ps.$tmppath.$BIN;
1222 }
1223 }
1224
1225 if ( $ASM_PATH ne "ASM_IN_PATH" )

--- 1484 unchanged lines hidden ---