From c5cd59c58320ddf5e61bce55e3bdbbd77e3b99ee Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 28 Nov 2006 23:46:26 +0000 Subject: [PATCH] fix compilation of RC files svn path=/trunk/; revision=24957 --- reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp index c09c3ecfb06..9a57c8fcd26 100644 --- a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp +++ b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp @@ -341,6 +341,7 @@ CBBackend::_generate_cbproj ( const Module& module ) string cbproj_path = module.GetBasePath(); string CompilerVar; string baseaddr; + string windres_defines; string project_linker_flags = "-Wl,--enable-stdcall-fixup "; project_linker_flags += GenerateProjectLinkerFlags(); @@ -433,10 +434,12 @@ CBBackend::_generate_cbproj ( const Module& module ) { const string& escaped = _replace_str(defs[i]->value, "\"","""); common_defines.push_back( defs[i]->name + "=" + escaped ); + windres_defines += "-D" + defs[i]->name + "=" + escaped + " "; } else { common_defines.push_back( defs[i]->name ); + windres_defines += "-D" + defs[i]->name + " "; } } /*const vector& variables = data.properties; @@ -482,7 +485,7 @@ CBBackend::_generate_cbproj ( const Module& module ) if ( configuration.UseConfigurationInPath ) { - if ( module.type == StaticLibrary ) + if ( module.type == StaticLibrary ||module.type == ObjectLibrary ) fprintf ( OUT, "\t\t\t\t