Author: hpoussin
Date: Sun Sep 2 17:08:00 2007
New Revision: 28770
URL:
http://svn.reactos.org/svn/reactos?rev=28770&view=rev
Log:
Search a property by its name
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 (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Sun Sep 2 17:08:00 2007
@@ -1204,6 +1204,18 @@
}
string
+MingwModuleHandler::GetPropertyValue ( const Module& module, const std::string&
name )
+{
+ for ( size_t i = 0; i < module.project.non_if_data.properties.size (); i++ )
+ {
+ const Property& property = *module.project.non_if_data.properties[i];
+ if ( property.name == name )
+ return property.value;
+ }
+ return string ( "" );
+}
+
+string
MingwModuleHandler::GetRpcServerHeaderFilename ( string basename ) const
{
return PassThruCacheDirectory ( basename + "_s.h",
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 (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.h Sun Sep 2 17:08:00 2007
@@ -211,6 +211,7 @@
void GenerateBuildNonSymbolStrippedCode ();
void CleanupCompilationUnitVector ( std::vector<CompilationUnit*>&
compilationUnits );
void GetRpcHeaderDependencies ( std::vector<std::string>& dependencies )
const;
+ static std::string GetPropertyValue ( const Module& module, const std::string&
name );
std::string GetRpcServerHeaderFilename ( std::string basename ) const;
std::string GetRpcClientHeaderFilename ( std::string basename ) const;
std::string GetIdlHeaderFilename ( std::string basename ) const;