Author: hpoussin
Date: Tue Sep 9 02:30:52 2008
New Revision: 36078
URL:
http://svn.reactos.org/svn/reactos?rev=36078&view=rev
Log:
Remove MingwKernelModeDriverModuleHandler, it is the same as
MingwKernelModeDLLModuleHandler
Modified:
trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
trunk/reactos/tools/rbuild/backend/mingw/modulehandler.h
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] Tue Sep 9
02:30:52 2008
@@ -195,6 +195,7 @@
break;
case KeyboardLayout:
case KernelModeDLL:
+ case KernelModeDriver:
handler = new MingwKernelModeDLLModuleHandler ( module );
break;
case NativeDLL:
@@ -205,9 +206,6 @@
break;
case Win32OCX:
handler = new MingwWin32OCXModuleHandler ( module );
- break;
- case KernelModeDriver:
- handler = new MingwKernelModeDriverModuleHandler ( module );
break;
case BootLoader:
handler = new MingwBootLoaderModuleHandler ( module );
@@ -2428,7 +2426,7 @@
MingwKernelModeDLLModuleHandler::GenerateKernelModeDLLModuleTarget ()
{
string targetMacro ( GetTargetMacro ( module ) );
- string workingDirectory = GetWorkingDirectory ( );
+ string workingDirectory = GetWorkingDirectory ();
string linkDepsMacro = GetLinkingDependenciesMacro ();
GenerateImportLibraryTargetIfNeeded ();
@@ -2453,55 +2451,6 @@
}
-MingwKernelModeDriverModuleHandler::MingwKernelModeDriverModuleHandler (
- const Module& module_ )
-
- : MingwModuleHandler ( module_ )
-{
-}
-
-void
-MingwKernelModeDriverModuleHandler::AddImplicitLibraries ( Module& module )
-{
- MingwAddDebugSupportLibraries ( module, DebugKernelMode );
-}
-
-void
-MingwKernelModeDriverModuleHandler::Process ()
-{
- GenerateKernelModeDriverModuleTarget ();
-}
-
-
-void
-MingwKernelModeDriverModuleHandler::GenerateKernelModeDriverModuleTarget ()
-{
- string targetMacro ( GetTargetMacro (module) );
- string workingDirectory = GetWorkingDirectory ();
- string linkDepsMacro = GetLinkingDependenciesMacro ();
-
- GenerateImportLibraryTargetIfNeeded ();
-
- if ( module.non_if_data.compilationUnits.size () > 0 )
- {
- GenerateRules ();
-
- string dependencies = linkDepsMacro + " " + objectsMacro;
-
- string linkerParameters = ssprintf ( "-subsystem=native -entry=%s -image-base=%s
-file-alignment=0x1000 -section-alignment=0x1000 -shared",
- module.GetEntryPoint(!(Environment::GetArch() ==
"arm")).c_str (),
- module.baseaddress.c_str () );
- GenerateLinkerCommand ( dependencies,
- linkerParameters,
- " -sections" );
- }
- else
- {
- GeneratePhonyTarget();
- }
-}
-
-
MingwNativeDLLModuleHandler::MingwNativeDLLModuleHandler (
const Module& module_ )
@@ -2656,6 +2605,8 @@
links_to_crt = true;
}
}
+ pLibrary = new Library ( module, "debugsup_ntdll" );
+ module.non_if_data.libraries.push_back(pLibrary);
return;
}
@@ -2679,13 +2630,15 @@
pLibrary = new Library ( module, "msvcrt" );
module.non_if_data.libraries.push_back ( pLibrary );
}
+
+ pLibrary = new Library ( module, "debugsup_ntdll" );
+ module.non_if_data.libraries.push_back(pLibrary);
}
void
MingwWin32DLLModuleHandler::AddImplicitLibraries ( Module& module )
{
MingwAddImplicitLibraries ( module );
- MingwAddDebugSupportLibraries ( module, DebugUserMode );
}
void
@@ -2727,7 +2680,6 @@
MingwWin32OCXModuleHandler::AddImplicitLibraries ( Module& module )
{
MingwAddImplicitLibraries ( module );
- MingwAddDebugSupportLibraries ( module, DebugUserMode );
}
void
@@ -2776,7 +2728,6 @@
MingwWin32CUIModuleHandler::AddImplicitLibraries ( Module& module )
{
MingwAddImplicitLibraries ( module );
- MingwAddDebugSupportLibraries ( module, DebugUserMode );
}
void
@@ -2825,7 +2776,6 @@
MingwWin32GUIModuleHandler::AddImplicitLibraries ( Module& module )
{
MingwAddImplicitLibraries ( module );
- MingwAddDebugSupportLibraries ( module, DebugUserMode );
}
void
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.h [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.h [iso-8859-1] Tue Sep 9
02:30:52 2008
@@ -212,17 +212,6 @@
};
-class MingwKernelModeDriverModuleHandler : public MingwModuleHandler
-{
-public:
- MingwKernelModeDriverModuleHandler ( const Module& module );
- virtual void Process ();
- void AddImplicitLibraries ( Module& module );
-private:
- void GenerateKernelModeDriverModuleTarget ();
-};
-
-
class MingwNativeDLLModuleHandler : public MingwModuleHandler
{
public: