2021-03-02 00:31:17 +00:00
|
|
|
project(
|
|
|
|
'MVOAU Ober', 'd',
|
|
|
|
version: '1.0.0',
|
|
|
|
license: 'MIT',
|
|
|
|
meson_version: '>= 0.52'
|
|
|
|
)
|
|
|
|
|
|
|
|
mvoau_ober_src_dir = include_directories('source/')
|
|
|
|
mvoau_ober_src = [
|
|
|
|
'source/msgpackrpc/client.d',
|
|
|
|
'source/msgpackrpc/package.d',
|
|
|
|
'source/msgpackrpc/protocol.d',
|
|
|
|
'source/msgpackrpc/server.d',
|
|
|
|
'source/app.d'
|
|
|
|
]
|
|
|
|
|
|
|
|
ddbus_dep = dependency('ddbus', version: '3.0.0')
|
|
|
|
msgpack_d_dep = dependency('msgpack-d', version: '>=1.0.0')
|
|
|
|
vibe_core_dep = dependency('vibe-core', version: '>=1.13')
|
|
|
|
|
2021-03-02 17:06:45 +00:00
|
|
|
systemd_dep = dependency('systemd')
|
|
|
|
|
2021-03-02 00:31:17 +00:00
|
|
|
mvoau_ober_deps = [ddbus_dep, msgpack_d_dep, vibe_core_dep]
|
|
|
|
|
|
|
|
executable('mvoau',
|
|
|
|
mvoau_ober_src,
|
|
|
|
include_directories: mvoau_ober_src_dir,
|
|
|
|
dependencies: [ddbus_dep,
|
|
|
|
msgpack_d_dep,
|
|
|
|
vibe_core_dep],
|
|
|
|
install: true)
|
|
|
|
|
2021-03-02 17:06:45 +00:00
|
|
|
if systemd_dep.found()
|
|
|
|
install_data('mvoau.service',
|
|
|
|
install_dir: systemd_dep.get_pkgconfig_variable('systemdsystemunitdir'))
|
|
|
|
endif
|
|
|
|
|
2021-03-02 00:31:17 +00:00
|
|
|
dlang = import('dlang')
|
|
|
|
dlang.generate_dub_file(meson.project_name().to_lower(), meson.source_root(),
|
|
|
|
authors: 'Meson Team',
|
|
|
|
copyright: 'Copyright © 2018, Meson Team',
|
|
|
|
license: meson.project_license(),
|
|
|
|
sourceFiles: mvoau_ober_src,
|
|
|
|
targetType: 'executable',
|
|
|
|
dependencies: mvoau_ober_deps
|
|
|
|
)
|