Debian Codegraph @

test cases/native/8 external program shebang parsing/meson.build

raw
1 project('shebang parsing', 'c')
2
3 interpreter = executable('aninterp', 'main.c', native : true)
4
5 cdata = configuration_data()
6 cdata.set('INTRP', interpreter.full_path())
7
8 f = configure_file(input : 'script.int.in',
9 output : 'script.int',
10 configuration : cdata)
11
12 # Test that parsing a shebang with spaces works properly. See `man execve`,
13 # specifically the section on "Interpreter scripts" and the one under "NOTES".
14 script = find_program(f)
15
16 custom_target('interpthis',
17 input : 'input.txt',
18 output : 'output.txt',
19 depends : interpreter,
20 command : [script, '@INPUT@', '@OUTPUT@'],
21 build_by_default : true)