summaryrefslogtreecommitdiff
path: root/test cases/d/3 shared library/meson.build
blob: 78ad766350a39b3ed8bc689ebcc1383571d89dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)