blob: bb251b7cad370cf6f78cf97a00d253b62c309cd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
subdir('subdir')
fake_generator_script = '''
import os, sys
assert os.path.exists(sys.argv[1]), "File %s not found" % sys.argv[1]
print("This is a generated resource.")
'''
# Generate file res3.txt from file res3.txt.in. This is then included
# in a GResource file, driven by resources/meson.build.
res3_txt = custom_target('res3',
input: 'res3.txt.in',
output: 'res3.txt',
command: [py3, '-c', fake_generator_script, '@INPUT@'],
capture: true,
)
|