[ros-diffs] [hpoussin] 28770: Search a property by its name

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Sun Sep 2 15:08:01 CEST 2007


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/modulehandler.cpp?rev=28770&r1=28769&r2=28770&view=diff
==============================================================================
--- 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/modulehandler.h?rev=28770&r1=28769&r2=28770&view=diff
==============================================================================
--- 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;




More information about the Ros-diffs mailing list