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.
 
 
 
 
 
 

38 lines
805 B

project('prebuilt shared library', 'c')
search_dir = get_option('search_dir')
if search_dir == 'auto'
search_dir = meson.current_source_dir()
endif
cc = meson.get_compiler('c')
shlib = cc.find_library('alexandria', dirs : search_dir)
exe = executable('patron', 'patron.c', dependencies : shlib)
test('visitation', exe)
d = declare_dependency(dependencies : shlib)
exe2 = executable('another_visitor', 'another_visitor.c',
dependencies : d)
test('another', exe2)
stlib = static_library(
'rejected',
'rejected.c',
dependencies : shlib,
)
rejected = executable(
'rejected',
'rejected_main.c',
link_with : stlib,
)
test('rejected', rejected)
rejected_whole = executable(
'rejected_whole',
'rejected_main.c',
link_whole : stlib,
)
test('rejected (whole archive)', rejected_whole)