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.
|
|
|
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
|
|
|
|
|
|
|
|
ldyn = shared_library('stuff', 'libstuff.d', install : true)
|
|
|
|
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']
|
|
|
|
)
|