From 5b83954756caf775c85183b0f3d3584572c37a94 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 9 Jan 2007 00:17:23 +0000 Subject: [PATCH] -don't create project files for the ISO targets -use the new extended_obj_names to prevent C::B from linking the wrong libs -change project file version to 1.6 -compile spec, S, asm and idl files -delete the temp rc files after building svn path=/trunk/; revision=25390 --- .../rbuild/backend/codeblocks/codeblocks.cpp | 75 +++++++++++++++++-- .../rbuild/backend/codeblocks/codeblocks.h | 1 + 2 files changed, 69 insertions(+), 7 deletions(-) diff --git a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp index 9a57c8fcd26..7e29c1b42a2 100644 --- a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp +++ b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp @@ -342,6 +342,7 @@ CBBackend::_generate_cbproj ( const Module& module ) string CompilerVar; string baseaddr; string windres_defines; + string widl_options; string project_linker_flags = "-Wl,--enable-stdcall-fixup "; project_linker_flags += GenerateProjectLinkerFlags(); @@ -353,7 +354,20 @@ CBBackend::_generate_cbproj ( const Module& module ) vector source_files, resource_files, includes, libraries, libpaths; vector header_files, common_defines, compiler_flags; vector vars, values; - + + /* do not create project files for these targets + use virtual targets instead */ + switch (module.type) + { + case Iso: + case LiveIso: + case IsoRegTest: + case LiveIsoRegTest: + return; + default: + break; + } + compiler_flags.push_back ( "-Wall" ); // Always force disabling of sibling calls optimisation for GCC @@ -414,6 +428,7 @@ CBBackend::_generate_cbproj ( const Module& module ) module.GetBasePath() ); includes.push_back ( path ); + widl_options += "-I" + path + " "; } const vector& libs = data.libraries; for ( i = 0; i < libs.size(); i++ ) @@ -467,12 +482,13 @@ CBBackend::_generate_cbproj ( const Module& module ) fprintf ( OUT, "\r\n" ); fprintf ( OUT, "\r\n" ); - fprintf ( OUT, "\t\r\n" ); + fprintf ( OUT, "\t\r\n" ); fprintf ( OUT, "\t\r\n" ); fprintf ( OUT, "\t\t