meson.build 544 B

123456789101112131415161718
  1. project('pipeline test', 'c')
  2. # We need to run this executable locally so build it with
  3. # the host compiler.
  4. e1 = executable('srcgen', 'srcgen.c', native : true)
  5. # Generate a source file that needs to be included in the build.
  6. gen = generator(e1, \
  7. depfile : '@BASENAME@.d',
  8. output : '@BASENAME@.c', # Line continuation inside arguments should work without needing a "\".
  9. arguments : ['@INPUT@', '@OUTPUT@', '@DEPFILE@'])
  10. generated = gen.process(['input_src.dat'])
  11. e2 = executable('prog', 'prog.c', generated)
  12. test('pipelined', e2)