for fila in files:
if fila[-2:] == '.c':
source += ' ' + extension + os.sep + fila
- elif fila[-5:] == '.vala':
+ elif 'VALAC' in bld.env and fila[-5:] == '.vala':
source += ' ' + extension + os.sep + fila
if not source:
Utils.pprint ('RED', folder + ': No source files found')
else:
if extension[-2:] == '.c':
target = extension[:-2]
- elif extension[-5:] == '.vala':
+ elif 'VALAC' in bld.env and extension[-5:] == '.vala':
target = extension[:-5]
else:
continue
for fila in files:
if fila[-2:] == '.c':
source += ' ' + test + os.sep + fila
- elif file[-5:] == '.vala':
+ elif 'VALAC' in bld.env and file[-5:] == '.vala':
source += ' ' + test + os.sep + fila
if not source:
Utils.pprint ('RED', folder + ': No source files found')
else:
if test[-2:] == '.c':
target = test[:-2]
- elif test[-5:] == '.vala':
+ elif 'VALAC' in bld.env and test[-5:] == '.vala':
target = test[:-5]
else:
continue