The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
466 B
17 lines
466 B
9 years ago
|
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.txt',
|
||
|
input: 'res3.txt.in',
|
||
|
output: 'res3.txt',
|
||
|
command: ['python3', '-c', fake_generator_script, '@INPUT@'],
|
||
|
capture: true,
|
||
|
)
|