-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> 

svn path=/trunk/; revision=24841
This commit is contained in:
Johannes Anderwald
2006-11-26 20:05:42 +00:00
parent 547b4bb0d2
commit b0a023a88a
@@ -70,7 +70,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
{
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 @@ MSVCBackend::_generate_vcproj ( const Module& module )
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 );
}
}