Debian Codegraph @

test cases/common/277 generator custom_tgt subdir/meson.build

raw
1 project('276 generator custom_tgt subdir')
2
3 python = find_program('python3', required: true)
4 args = [
5 '-c',
6 'import sys; open(sys.argv[1], "w")',
7 '@OUTPUT0@',
8 ]
9
10 subdir('include')
11
12 gen = generator(
13 python,
14 arguments: args + ['@OUTPUT@'],
15 output: '@[email protected]',
16 )
17
18 custom_target(
19 'check-headers.stamp',
20 command: [python, args, '@INPUT@'],
21 input: gen.process(test_header),
22 output: 'check-headers.stamp',
23 build_by_default: true,
24 )