diff options
Diffstat (limited to 'meson/test cases/frameworks/7 gnome/resources-data/meson.build')
-rw-r--r-- | meson/test cases/frameworks/7 gnome/resources-data/meson.build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/7 gnome/resources-data/meson.build b/meson/test cases/frameworks/7 gnome/resources-data/meson.build new file mode 100644 index 000000000..31a577b2e --- /dev/null +++ b/meson/test cases/frameworks/7 gnome/resources-data/meson.build @@ -0,0 +1,18 @@ +subdir('subdir') + +python3 = import('python3').find_python() + +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: [python3, '-c', fake_generator_script, '@INPUT@'], + capture: true, +) |