Make D template work even if dub is not available.

pull/6399/head
Jussi Pakkanen 5 years ago
parent e9158b477f
commit 6e7d5a0c61
  1. 2
      mesonbuild/templates/dlangtemplates.py

@ -88,6 +88,7 @@ test('{test_name}', test_exe)
# Make this library usable from the Dlang
# build system.
dlang_mod = import('dlang')
if find_program('dub', required: false).found()
dlang_mod.generate_dub_file(meson.project_name().to_lower(), meson.source_root(),
name : meson.project_name(),
license: meson.project_license(),
@ -95,6 +96,7 @@ dlang_mod.generate_dub_file(meson.project_name().to_lower(), meson.source_root()
description : 'Meson sample project.',
version : '{version}',
)
endif
'''
def create_exe_d_sample(project_name, project_version):

Loading…
Cancel
Save