Only pick up .vala files if Vala is available
This commit is contained in:
parent
7044bb70c4
commit
ccb60bb8d4
2 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ for extension in extensions:
|
|||
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')
|
||||
|
@ -22,7 +22,7 @@ for extension in extensions:
|
|||
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
|
||||
|
|
|
@ -14,7 +14,7 @@ for test in tests:
|
|||
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')
|
||||
|
@ -22,7 +22,7 @@ for test in tests:
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue