AIUO/ober/meson.build

51 lines
1.3 KiB
Meson
Raw Normal View History

2021-03-02 00:31:17 +00:00
project(
'MVOAU Ober', 'd',
2021-04-09 12:57:26 +00:00
version: '1.0.1',
license: 'MIT',
meson_version: '>= 0.52'
2021-03-02 00:31:17 +00:00
)
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'
2021-03-02 00:31:17 +00:00
]
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]
mvoau_ober_versions = []
if get_option('RPC').enabled()
mvoau_ober_versions += ['WithRPC']
endif
2021-03-02 00:31:17 +00:00
executable('mvoau',
mvoau_ober_src,
include_directories: mvoau_ober_src_dir,
dependencies: [ddbus_dep, msgpack_d_dep, vibe_core_dep],
d_module_versions: mvoau_ober_versions,
install: true)
2021-03-02 00:31:17 +00:00
2021-03-02 17:06:45 +00:00
if systemd_dep.found()
install_data('mvoau.service',
install_dir: systemd_dep.get_pkgconfig_variable('systemdsystemunitdir'))
2021-03-02 17:06:45 +00:00
endif
# 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
#)