-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeson.build
46 lines (38 loc) · 910 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: python; -*-
project(
'dinotify',
'd',
version: '0.5.1',
meson_version: '>=0.41',
default_options: ['buildtype=release'],
)
sources = [
'source/dinotify.d',
]
install_headers(sources, subdir: 'd/')
sharedlib = library(
meson.project_name(),
sources,
version: meson.project_version(),
pic: true,
install: true,
)
pkgconfig = import('pkgconfig')
pkgconfig.generate(
name: meson.project_name(),
libraries: sharedlib,
subdirs: 'd/',
version: meson.project_version(),
description: 'A D library to work with Linux\'s kernel inotify file events subsystem.'
)
testExecutable = executable(
'dinotify-test',
sources,
d_args: ['-unittest'],
link_args: ['--main'],
)
test('all tests', testExecutable)
dinotfy_dep = declare_dependency(
link_with: sharedlib,
include_directories: [include_directories('source/')],
)