Author: cwittich Date: Mon Nov 27 22:24:10 2006 New Revision: 24871
URL: http://svn.reactos.org/svn/reactos?rev=24871&view=rev Log: -create import libraries -change target value to match the new C::B one (C::B r3286 SVN) -simplify cpl debugging command
Modified: trunk/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp
Modified: trunk/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/codebl... ============================================================================== --- trunk/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp (original) +++ trunk/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp Mon Nov 27 22:24:10 2006 @@ -496,13 +496,13 @@ else if ( dll ) fprintf ( OUT, "\t\t\t\t<Option type="3" />\r\n" ); else if ( sys ) - fprintf ( OUT, "\t\t\t\t<Option type="4" />\r\n" ); + fprintf ( OUT, "\t\t\t\t<Option type="5" />\r\n" ); else if ( exe ) { if ( module.type == Kernel ) - fprintf ( OUT, "\t\t\t\t<Option type="4" />\r\n" ); + fprintf ( OUT, "\t\t\t\t<Option type="5" />\r\n" ); else if ( module.type == NativeCUI ) - fprintf ( OUT, "\t\t\t\t<Option type="4" />\r\n" ); + fprintf ( OUT, "\t\t\t\t<Option type="5" />\r\n" ); else if ( module.type == Win32CUI || module.type == Win32GUI || module.type == Win32SCR) { if ( console ) @@ -515,11 +515,7 @@ fprintf ( OUT, "\t\t\t\t<Option compiler="gcc" />\r\n" ); if ( module_type == ".cpl" ) { - if ( configuration.UseConfigurationInPath ) - fprintf ( OUT, "\t\t\t\t<Option parameters="shell32,Control_RunDLL "%s\%s%s\%s%s",@" />\r\n", outdir.c_str (), module.GetBasePath ().c_str (), cfg.name.c_str(), module.name.c_str(), module_type.c_str() ); - else - fprintf ( OUT, "\t\t\t\t<Option parameters="shell32,Control_RunDLL "%s\%s\%s%s",@" />\r\n", outdir.c_str (), module.GetBasePath ().c_str (), module.name.c_str(), module_type.c_str() ); - + fprintf ( OUT, "\t\t\t\t<Option parameters="shell32,Control_RunDLL "$exe_output",@" />\r\n" ); fprintf ( OUT, "\t\t\t\t<Option host_application="rundll32.exe" />\r\n" ); } fprintf ( OUT, "\t\t\t\t<Compiler>\r\n" ); @@ -612,19 +608,24 @@ } fprintf ( OUT, "\t\t\t\t</Linker>\r\n" );
+ fprintf ( OUT, "\t\t\t\t<ExtraCommands>\r\n" ); + + if ( module.type == StaticLibrary && module.importLibrary ) + fprintf ( OUT, "\t\t\t\t\t<Add after="dlltool --dllname %s --def %s --output-lib "$(TARGET_OUTPUT_DIR)lib$(TARGET_OUTPUT_BASENAME).a" %s -U" />\r\n", module.importLibrary->dllname.c_str (), module.importLibrary->definition.c_str(), module.mangledSymbols ? "" : "--kill-at" ); + if ( dll ) { - fprintf ( OUT, "\t\t\t\t<ExtraCommands>\r\n" ); - fprintf ( OUT, "\t\t\t\t\t<Add before="dlltool --dllname %s%s --def %s --output-exp %s.temp.exp --kill-at" />\r\n", module.name.c_str(), module_type.c_str(), module.importLibrary->definition.c_str(), module.name.c_str() ); + + fprintf ( OUT, "\t\t\t\t\t<Add before="dlltool --dllname %s --def %s --output-exp %s.temp.exp %s" />\r\n", module.importLibrary->dllname.c_str (), module.importLibrary->definition.c_str(), module.name.c_str(), module.mangledSymbols ? "" : "--kill-at" ); #ifdef WIN32 fprintf ( OUT, "\t\t\t\t\t<Add after="cmd /c del %s.temp.exp 2>NUL" />\r\n", module.name.c_str() ); #else fprintf ( OUT, "\t\t\t\t\t<Add after="rm %s.temp.exp 2>/dev/null" />\r\n", module.name.c_str() ); #endif fprintf ( OUT, "\t\t\t\t\t<Mode after="always" />\r\n" ); - - fprintf ( OUT, "\t\t\t\t</ExtraCommands>\r\n" ); - } + } + + fprintf ( OUT, "\t\t\t\t</ExtraCommands>\r\n" );
fprintf ( OUT, "\t\t\t</Target>\r\n" );