[ros-diffs] [janderwald] 24841: -only include files where if Property == value || If not Property != value - example win32k.rbuild: <ifnot property="ARCH" value="i386"> <file>dib24bppc.c</file> <file>dib32bppc.c</file> </ifnot>

janderwald at svn.reactos.org janderwald at svn.reactos.org
Sun Nov 26 21:05:42 CET 2006


Author: janderwald
Date: Sun Nov 26 23:05:42 2006
New Revision: 24841

URL: http://svn.reactos.org/svn/reactos?rev=24841&view=rev
Log:
-only include files where if Property == value || If not Property != value
- example win32k.rbuild:
<ifnot property="ARCH" value="i386">                      
                      <file>dib24bppc.c</file>
                      <file>dib32bppc.c</file>
</ifnot> 

Modified:
    trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp

Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp?rev=24841&r1=24840&r2=24841&view=diff
==============================================================================
--- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp (original)
+++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Sun Nov 26 23:05:42 2006
@@ -70,7 +70,7 @@
 {
 	size_t i;
 
-	string vcproj_file = VcprojFileName(module);
+ 	string vcproj_file = VcprojFileName(module);
 
 	string username = getenv ( "USERNAME" );
 	string computername = getenv ( "COMPUTERNAME" );
@@ -133,7 +133,8 @@
 			const Property* property = _lookup_property( module, data.ifs[i]->property );
 			if ( property != NULL )
 			{
-				if ( data.ifs[i]->value == property->value || data.ifs[i]->negated )
+				if ( data.ifs[i]->value == property->value && data.ifs[i]->negated == false ||
+					data.ifs[i]->value != property->value && data.ifs[i]->negated)
 					ifs_list.push_back ( &data.ifs[i]->data );
 			}
 		}




More information about the Ros-diffs mailing list