mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
Remove GetExtraDependencies() function.
It was only called when the file extension was .c/.cc/.cpp/.cxx, and the function was returning empty string in those cases. svn path=/trunk/; revision=36077
This commit is contained in:
parent
8bfedb5a6d
commit
93ec54f4e5
|
@ -263,33 +263,6 @@ MingwModuleHandler::GetBasename ( const string& filename ) const
|
|||
return "";
|
||||
}
|
||||
|
||||
string
|
||||
MingwModuleHandler::GetExtraDependencies (
|
||||
const FileLocation *file ) const
|
||||
{
|
||||
string extension = GetExtension ( *file );
|
||||
if ( extension == ".idl" || extension == ".IDL" )
|
||||
{
|
||||
const FileLocation *header;
|
||||
switch ( module.type )
|
||||
{
|
||||
case RpcServer: header = GetRpcServerHeaderFilename ( file ); break;
|
||||
case RpcClient: header = GetRpcClientHeaderFilename ( file ); break;
|
||||
case RpcProxy: header = GetRpcProxyHeaderFilename ( file ); break;
|
||||
case IdlHeader: header = GetIdlHeaderFilename ( file ); break;
|
||||
default: header = NULL; break;
|
||||
}
|
||||
if ( !header )
|
||||
return "";
|
||||
|
||||
string dependencies = backend->GetFullName ( *header );
|
||||
delete header;
|
||||
return " " + dependencies;
|
||||
}
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
string
|
||||
MingwModuleHandler::GetCompilationUnitDependencies (
|
||||
const CompilationUnit& compilationUnit ) const
|
||||
|
@ -1327,7 +1300,7 @@ MingwModuleHandler::GenerateCommands (
|
|||
{
|
||||
GenerateGccCommand ( &sourceFile,
|
||||
customRule,
|
||||
GetCompilationUnitDependencies ( compilationUnit ) + GetExtraDependencies ( &sourceFile ) + extraDependencies );
|
||||
GetCompilationUnitDependencies ( compilationUnit ) + extraDependencies );
|
||||
}
|
||||
else if ( customRule )
|
||||
customRule->Execute ( fMakefile, backend, module, &sourceFile, clean_files );
|
||||
|
|
|
@ -80,7 +80,6 @@ protected:
|
|||
virtual void GetModuleSpecificCompilationUnits ( std::vector<CompilationUnit*>& compilationUnits );
|
||||
std::string GetWorkingDirectory () const;
|
||||
std::string GetBasename ( const std::string& filename ) const;
|
||||
std::string GetExtraDependencies ( const FileLocation *file ) const;
|
||||
std::string GetCompilationUnitDependencies ( const CompilationUnit& compilationUnit ) const;
|
||||
const FileLocation* GetModuleArchiveFilename () const;
|
||||
std::string GetImportLibraryDependency ( const Module& importedModule );
|
||||
|
|
Loading…
Reference in a new issue