add include directories from xml, remove "." hack, as projects that need
to include their base directory have done so already in the xml.
Modified: trunk/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp
_____
Modified: trunk/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp
--- trunk/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp
2005-08-28 02:37:06 UTC (rev 17575)
+++ trunk/reactos/tools/rbuild/backend/msvc/msvcmaker.cpp
2005-08-28 05:34:22 UTC (rev 17576)
@@ -56,7 +56,7 @@
// TODO FIXME - what's diff. betw. 'c_srcs' and 'source_files'?
string dsp_path = module.GetBasePath();
- vector<string> c_srcs, source_files, resource_files;
+ vector<string> c_srcs, source_files, resource_files, includes;
vector<const IfableData*> ifs_list;
ifs_list.push_back ( &module.non_if_data );
while ( ifs_list.size() )
@@ -78,6 +78,16 @@
if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
resource_files.push_back ( file );
}
+ const vector<Include*>& incs = data.includes;
+ for ( i = 0; i < incs.size(); i++ )
+ {
+ string path = Path::RelativeFromDirectory (
+ incs[i]->directory,
+ module.GetBasePath() );
+ if ( !path.size() )
+ i = i;
+ includes.push_back ( path );
+ }
}
// TODO FIXME - we don't include header files in our build
system
//my @header_files = @{module->{header_files}};
@@ -308,7 +318,6 @@
}
}
- fprintf ( OUT, " /I \".\"" );
for ( i = 0; i < defines.size(); i++ )
{
fprintf ( OUT, " /D \"%s\"", defines[i].c_str()
);
@@ -359,7 +368,6 @@
}
}
- std::vector<std::string> includes;
// TODO FIXME - wine hack?
if ( wine )
{
@@ -391,9 +399,9 @@
}*/
}
- if ( wine )
+ //if ( wine )
{
- for ( i = 0; i < includes.size(); i++ );
+ for ( i = 0; i < includes.size(); i++ )
{
const string& include = includes[i];
if ( strpbrk ( include.c_str(), "[\\\"]"
) )
Show replies by date