AIUO/ober/meson.build

40 lines
1.2 KiB
Meson
Raw Normal View History

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')
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)
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
)