The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
439 B

project('test', 'c')
generated_c = custom_target(
'generated.c',
input : files('generated_source.c', 'copyfile.py'),
output : 'generated.c',
command : ['python', '@INPUT1@', '@INPUT0@', '@OUTPUT@'],
)
static_lib = static_library(
'static_lib',
[files('static_lib_source.c'), generated_c],
)
both_lib = both_libraries(
'both_lib',
[files('both_lib_source.c')],
link_with : [static_lib],
install : true,
)