summaryrefslogtreecommitdiffstats
path: root/test cases/common/6 linkshared/meson.build
blob: 846b4a09bc426550a907f328309a1cb08df27a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)