mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:42:58 +00:00
- Revert dependencies part of r21866 since it breaks compiling on MSVC 2005 (it complains to missing libs which we don't yet compile - like ntdll.lib, gdi32.lib, user32.lib and so on)
svn path=/trunk/; revision=21901
This commit is contained in:
parent
c37d7e43f9
commit
ae9f01ed84
1 changed files with 8 additions and 29 deletions
|
@ -646,40 +646,19 @@ MSVCBackend::_generate_sln_project (
|
|||
std::string vcproj_guid,
|
||||
const std::vector<Dependency*>& dependencies )
|
||||
{
|
||||
//vcproj_file = DosSeparator ( std::string(".\\") + vcproj_file );
|
||||
|
||||
fprintf ( OUT, "Project(\"%s\") = \"%s\", \"%s\", \"{%s}\"\r\n", sln_guid.c_str() , module.name.c_str(), vcproj_file.c_str(), vcproj_guid.c_str() );
|
||||
|
||||
vector<const IfableData*> ifs_list;
|
||||
ifs_list.push_back ( &module.project.non_if_data );
|
||||
ifs_list.push_back ( &module.non_if_data );
|
||||
vcproj_file = DosSeparator ( std::string(".\\") + vcproj_file );
|
||||
|
||||
fprintf ( OUT, "Project(\"%s\") = \"%s\", \"%s\", \"%s\"\r\n", sln_guid.c_str() , module.name.c_str(), vcproj_file.c_str(), vcproj_guid.c_str() );
|
||||
|
||||
//FIXME: only omit ProjectDependencies in VS 2005 when there are no dependencies
|
||||
//NOTE: VS 2002 do not use ProjectSection; it uses GlobalSection instead
|
||||
if (configuration.VSProjectVersion != "7.00") {
|
||||
|
||||
bool has_dependencies = false;
|
||||
|
||||
|
||||
|
||||
|
||||
while ( ifs_list.size() )
|
||||
{
|
||||
const IfableData& data = *ifs_list.back();
|
||||
ifs_list.pop_back();
|
||||
const vector<Library*>& libs = data.libraries;
|
||||
for ( unsigned i = 0; i < libs.size(); i++ )
|
||||
{
|
||||
if ( !has_dependencies ) {
|
||||
if ((configuration.VSProjectVersion == "7.10") || (dependencies.size() > 0)) {
|
||||
fprintf ( OUT, "\tProjectSection(ProjectDependencies) = postProject\r\n" );
|
||||
has_dependencies = true;
|
||||
for ( size_t i = 0; i < dependencies.size(); i++ )
|
||||
{
|
||||
Dependency& dependency = *dependencies[i];
|
||||
fprintf ( OUT, "\t\t%s = %s\r\n", dependency.module.guid.c_str(), dependency.module.guid.c_str() );
|
||||
}
|
||||
|
||||
fprintf ( OUT, "\t\t{%s} = {%s}\r\n", libs[i]->importedModule->guid.c_str(), libs[i]->importedModule->guid.c_str());
|
||||
}
|
||||
}
|
||||
if ( has_dependencies )
|
||||
fprintf ( OUT, "\tEndProjectSection\r\n" );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue