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.
 
 
 
 
 
 

22 lines
503 B

mod = import('unstable_external_project')
target_system = target_machine.system()
if target_system in ['windows', 'cygwin']
libext = 'dll'
elif target_system == 'darwin'
libext = 'dylib'
else
libext = 'so'
endif
p = mod.add_project('configure',
configure_options : [
'--prefix=@PREFIX@',
'--libdir=@PREFIX@/@LIBDIR@',
'--includedir=@PREFIX@/@INCLUDEDIR@',
'--libext=' + libext,
],
)
libfoo_dep = declare_dependency(link_with : somelib,
dependencies : p.dependency('foo'))