You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/12/24 00:16:30 UTC
svn commit: r358881 [2/2] - /incubator/stdcxx/trunk/etc/config/windows/
Modified: incubator/stdcxx/trunk/etc/config/windows/utilities.js
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/windows/utilities.js?rev=358881&r1=358880&r2=358881&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/utilities.js (original)
+++ incubator/stdcxx/trunk/etc/config/windows/utilities.js Fri Dec 23 15:16:15 2005
@@ -127,6 +127,16 @@
return res;
}
+function removeLeadingSymbol(dotName, symbol)
+{
+ var index = dotName.indexOf(symbol);
+ if (0 != index)
+ return dotName;
+
+ var resName = dotName.substr(symbol.length);
+ return resName;
+}
+
function removeLeadingDot(dotName)
{
var index = dotName.indexOf(".");
@@ -137,6 +147,43 @@
return resName;
}
+// icc specific - solution conversion
+function convertSolutionImpl(slnFileName, toICC, logStream)
+{
+ var convertKey = toICC == true ? "/IC" : "/VC";
+ var cmdICConvert = iccConversionUtility + " \"" + slnFileName +
+ "\" " + convertKey;
+
+ var convertKeyFriendly = toICC == true ? "ICC" : "MSVC";
+ WScript.Echo("Converting solution to " + convertKeyFriendly +
+ ". This may take several minutes.");
+
+ var res = -1;
+ try
+ {
+ if (logStream)
+ logStream.WriteLine("Converting " + cmdICConvert);
+
+ res = WshShell.Run(cmdICConvert, 7, true);
+ if (0 != res)
+ WScript.Echo("Conversion finished with code " + res);
+
+ if (logStream)
+ logStream.WriteLine("Conversion to " + convertKeyFriendly +
+ " finished with code " + res);
+ }
+ catch(e)
+ {
+ WScript.Echo("Conversion failed");
+ if (logStream)
+ logStream.WriteLine("Conversion failed");
+
+ return -1;
+ }
+
+ return res;
+}
+
//////////////////////////////////////////////////////////////////////
// compile environment
var activeCompiler = null;
@@ -149,7 +196,12 @@
function setCompileEnvironment(solutionName, configurationName
, projectName, logFile)
{
+ // obtain the solution. Check that there is no specail solution
+ // for configure script
var solution = configurations.get(solutionName);
+ if (null != configurations.get(solutionName + "_config"))
+ solution = configurations.get(solutionName + "_config");
+
var solutionconfig = solution.configurations.get(configurationName);
var projectConfig =
solutionconfig.projectConfigurations.get(projectName);