Allow passing a list of Files to CustomTarget. Closes #1720
parent
e2567386f1
commit
c03744cccb
5 changed files with 22 additions and 3 deletions
@ -0,0 +1 @@ |
||||
some text |
@ -0,0 +1,7 @@ |
||||
import shutil |
||||
import sys |
||||
|
||||
if __name__ == '__main__': |
||||
if len(sys.argv) != 3: |
||||
raise Exception('Requires exactly 2 args') |
||||
shutil.copy2(sys.argv[1], sys.argv[2]) |
@ -0,0 +1,12 @@ |
||||
project('test', 'c') |
||||
|
||||
mod_py = import('python3') |
||||
python = mod_py.find_python() |
||||
|
||||
test_target = custom_target( |
||||
'test_target', |
||||
input : [files('gen.py'), files('foo')], |
||||
output : 'bar', |
||||
command : [python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'], |
||||
build_by_default : true, |
||||
) |
Loading…
Reference in new issue