|
|
@ -1,12 +1,15 @@ |
|
|
|
project('dub-example', 'd') |
|
|
|
project('dub-example', 'd') |
|
|
|
|
|
|
|
|
|
|
|
error('MESON_SKIP_TEST: Dub support is broken at the moment (#11773)') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dub_exe = find_program('dub', required : false) |
|
|
|
dub_exe = find_program('dub', required : false) |
|
|
|
if not dub_exe.found() |
|
|
|
if not dub_exe.found() |
|
|
|
error('MESON_SKIP_TEST: Dub not found') |
|
|
|
error('MESON_SKIP_TEST: Dub not found') |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dub_ver = dub_exe.version() |
|
|
|
|
|
|
|
if dub_ver.version_compare('>1.31.1') and dub_ver.version_compare('<1.35.0') |
|
|
|
|
|
|
|
error('MESON_SKIP_TEST: Incompatible Dub version ' + dub_ver) |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
urld_dep = dependency('urld', method: 'dub') |
|
|
|
urld_dep = dependency('urld', method: 'dub') |
|
|
|
|
|
|
|
|
|
|
|
test_exe = executable('test-urld', 'test.d', dependencies: urld_dep) |
|
|
|
test_exe = executable('test-urld', 'test.d', dependencies: urld_dep) |
|
|
|