meson.build 274 B

12345678910111213
  1. project('test', 'c')
  2. mod_py = import('python3')
  3. python = mod_py.find_python()
  4. test_target = custom_target(
  5. 'test_target',
  6. input : [files('gen.py'), files('foo')],
  7. output : 'bar',
  8. command : [python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'],
  9. build_by_default : true,
  10. )