Debian Codegraph @

test cases/csharp/2 library/meson.build

raw
1 project('C# library', 'cs')
2
3 python3 = import('python3').find_python()
4 generated_sources = custom_target('gen_sources',
5 input: 'helper.cs',
6 output: 'helper.cs',
7 command: [python3, '-c',
8 'import shutil, sys; shutil.copyfile(sys.argv[1], sys.argv[2])',
9 '@INPUT@', '@OUTPUT@']
10 )
11
12 l = shared_library('helper', generated_sources, install : true)
13
14 e = executable('prog', 'prog.cs', link_with : l, install : true)
15 test('libtest', e)