diff options
Diffstat (limited to 'meson/test cases/d/3 shared library/meson.build')
-rw-r--r-- | meson/test cases/d/3 shared library/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meson/test cases/d/3 shared library/meson.build b/meson/test cases/d/3 shared library/meson.build new file mode 100644 index 000000000..fa417794c --- /dev/null +++ b/meson/test cases/d/3 shared library/meson.build @@ -0,0 +1,26 @@ +project('D Shared Library', 'd') + +dc = meson.get_compiler('d') +if dc.get_id() == 'gcc' + if dc.version().version_compare('< 8') + error('MESON_SKIP_TEST: GDC < 8.0 can not build shared libraries') + endif +endif + +subdir('sub') +ed = executable('app_d', 'app.d', link_with : ldyn, install : true) +test('linktest_dyn', ed) + +# test D attributes for pkg-config +pkgc = import('pkgconfig') +pkgc.generate(name: 'test', + libraries: ldyn, + subdirs: 'd/stuff', + description: 'A test of D attributes to pkgconfig.generate.', + d_module_versions: ['Use_Static'] +) + +ldd = find_program('ldd', required : false) +if ldd.found() + test('ldd-test.py', ed) +endif |