This means replacing @PLAINNAME@ and @BASENAME@ in the outputs. This is the same feature as generator(). This is only allowed when there is only one input file for obvious reasons + failing test for this.pull/1403/head
parent
73b2ee08a8
commit
f3ff8fe6b7
6 changed files with 38 additions and 3 deletions
@ -0,0 +1,9 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys |
||||
|
||||
out = sys.argv[-1] |
||||
with open(out, 'wb') as o: |
||||
for infile in sys.argv[1:-1]: |
||||
with open(infile, 'rb') as f: |
||||
o.write(f.read()) |
@ -0,0 +1,8 @@ |
||||
project('plain name many inputs', 'c') |
||||
|
||||
catfiles = find_program('catfiles.py') |
||||
|
||||
custom_target('plainname-inputs', |
||||
input : ['1.txt', '2.txt'], |
||||
output : '@PLAINNAME@.dat', |
||||
command : [catfiles, '@INPUT@', '@OUTPUT@']) |
Loading…
Reference in new issue