Hello:
I'm trying to build a VC ++ 2003 project file (of an open source project) using the
solution task of nant and i have noticed that the additional include dirs configuration
of the project file is not being detcted properly by nant, i have fixed it (there will be
a better way but i haven't checked it in deep ;)) by changing in the
VSProject.BuildCPPFiles this:
string includeDirs = fileConfig.GetToolSetting(compilerTool, "AdditionalIncludeDirectories");
if (!StringUtils.IsNullOrEmpty (includeDirs))
{
foreach (string includeDir in includeDirs.Split (',', ';'))
{
clTask.IncludeDirs.DirectoryNames.Add (includeDir);
}
}
To this:
string includeDirs = fileConfig.GetToolSetting(compilerTool, "AdditionalIncludeDirectories");
if (!StringUtils.IsNullOrEmpty (includeDirs))
{
foreach (string includeDir in includeDirs.Split (',', ';'))
{
clTask.IncludeDirs.DirectoryNames.Add (includeDir);
}
}
else
{
string baseIncludeDirs = baseConfig.GetToolSetting (compilerTool, "AdditionalIncludeDirectories");
if (!StringUtils.IsNullOrEmpty (baseIncludeDirs))
{
foreach (string includeDir in baseIncludeDirs.Split (',', ';'))
{
clTask.IncludeDirs.DirectoryNames.Add (includeDir);
}
}
}
(The baseConfig has the additional include directories, that aren't included in the configuration of each file)
Let me know if there are a better way to do this, ot if more information is needed.
Thanks in advance !!
-- Best regards
Carlos GuzmÃn Ãlvarez Vigo-Spain
One ring to rule them all (The lord of the rings - J.R.R.Tolkien)
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
