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.
12 lines
517 B
12 lines
517 B
10 years ago
|
project('statchain', 'c')
|
||
|
|
||
|
subdir('subdir')
|
||
8 years ago
|
# Test that -fPIC in c_args is also accepted
|
||
|
statlib2 = static_library('stat2', 'stat2.c', c_args : '-fPIC', pic : false)
|
||
|
# Test that pic is needed for both direct and indirect static library
|
||
|
# dependencies of shared libraries (on Linux and BSD)
|
||
|
statlib = static_library('stat', 'stat.c', link_with : [shlib, statlib2], pic : true)
|
||
8 years ago
|
shlib2 = shared_library('shr2', 'shlib2.c', link_with : statlib)
|
||
|
exe = executable('prog', 'prog.c', link_with : shlib2)
|
||
10 years ago
|
test('runtest', exe)
|