-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
46 lines (36 loc) · 1.22 KB
/
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
project('GOpenHMD', 'vala')
vapi_dir = meson.current_source_dir() / 'openhmd-bindings'
add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
gopenhmd_dep = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('openhmd'),
]
sources = files(
'src/gopenhmd.vala',
'src/context.vala',
'src/device_description.vala',
'src/device_settings.vala',
'src/device.vala',
'src/interfaces.vala',
)
subdir('tests')
gopenhmd_lib = shared_library('gopenhmd',
vala_gir: 'GOpenHMD-1.0.gir',
dependencies: gopenhmd_dep,
sources: sources,
install: true,
install_dir: [true, true, true, true])
pkg = import('pkgconfig')
pkg.generate(gopenhmd_lib)
g_ir_compiler = find_program('g-ir-compiler')
custom_target('gopenhmd typelib', command: [
g_ir_compiler,
'--shared-library=libgopenhmd',
'--output', '@OUTPUT@', '@INPUT@'
],
input: meson.current_build_dir() / 'GOpenHMD-1.0.gir',
output: 'GOpenHMD-1.0.typelib',
depends: gopenhmd_lib,
install: false,
install_dir: get_option('libdir') / 'girepository-1.0')