meson.build 467 B

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