From 8002abf980be9e4de473741b4aa0b98b95a949b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 7 Mar 2008 09:17:12 +0000 Subject: [PATCH] Don't mix host and targets include files Add HostStaticLibrary type svn path=/trunk/; revision=32594 --- .../rbuild/backend/codeblocks/codeblocks.cpp | 9 +- .../rbuild/backend/mingw/modulehandler.cpp | 90 ++++++++++++++----- .../rbuild/backend/mingw/modulehandler.h | 11 +++ reactos/tools/rbuild/bootstrap.cpp | 1 + reactos/tools/rbuild/module.cpp | 11 ++- reactos/tools/rbuild/rbuild.h | 1 + 6 files changed, 93 insertions(+), 30 deletions(-) diff --git a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp index 0c45284692e..3960526c992 100644 --- a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp +++ b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp @@ -37,6 +37,7 @@ using std::ifstream; #undef OUT #endif//OUT +#define IsStaticLibrary( module ) ( ( module.type == StaticLibrary ) || ( module.type == HostStaticLibrary ) ) static class CBFactory : public Backend::Factory { @@ -497,7 +498,7 @@ CBBackend::_generate_cbproj ( const Module& module ) if ( !module.allowWarnings ) compiler_flags.push_back ( "-Werror" ); - if ( module.type == StaticLibrary && module.isStartupLib ) + if ( IsStaticLibrary ( module ) && module.isStartupLib ) compiler_flags.push_back ( "-Wno-main" ); @@ -524,7 +525,7 @@ CBBackend::_generate_cbproj ( const Module& module ) if ( configuration.UseConfigurationInPath ) { - if ( module.type == StaticLibrary ||module.type == ObjectLibrary ) + if ( IsStaticLibrary ( module ) ||module.type == ObjectLibrary ) fprintf ( OUT, "\t\t\t\t