* Failing test case for trying to install_data a custom_target * Validate install_data() arguments are either string or filepull/5330/head
parent
128d313b66
commit
261878f438
4 changed files with 28 additions and 1 deletions
@ -0,0 +1 @@ |
||||
Some data which gets processed before installation |
@ -0,0 +1,11 @@ |
||||
project('custom target install data') |
||||
|
||||
preproc = find_program('preproc.py') |
||||
|
||||
t = custom_target('Info.plist', |
||||
command: [preproc, '@INPUT@', '@OUTPUT@'], |
||||
input: 'Info.plist.cpp', |
||||
output: 'Info.plist', |
||||
) |
||||
|
||||
install_data(t) |
@ -0,0 +1,13 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys |
||||
|
||||
if len(sys.argv) != 3: |
||||
print(sys.argv[0], '<input>', '<output>') |
||||
|
||||
inf = sys.argv[1] |
||||
outf = sys.argv[2] |
||||
|
||||
with open(outf, 'wb') as o: |
||||
with open(inf, 'rb') as i: |
||||
o.write(i.read()) |
Loading…
Reference in new issue