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.
13 lines
489 B
13 lines
489 B
5 years ago
|
project('shared library linking test', 'c', 'cpp')
|
||
|
|
||
|
lib = shared_library('mylib',
|
||
|
'libfile.c' # Split to different lines before and after the comma to test parser.
|
||
|
, install : false) # Don't install libraries in common tests; the path is platform-specific
|
||
|
exe = executable('prog', 'main.c', link_with : lib, install : true)
|
||
|
|
||
|
test('runtest', exe)
|
||
|
|
||
|
cpplib = shared_library('mycpplib', 'cpplib.cpp')
|
||
|
cppexe = executable('cppprog', 'cppmain.cpp', link_with : cpplib)
|
||
|
test('cpptest', cppexe)
|