-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
46 lines (38 loc) · 842 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
project(
'metrognome',
'c',
version: '0.1.0',
meson_version: '>=0.43.0',
license: 'GPL-2.0+'
)
cc = meson.get_compiler('c')
mathlib = cc.find_library('m', required: false)
deps = [
dependency('gtk+-3.0', version:'>=3.20'),
dependency('gstreamer-1.0'),
mathlib
]
sources = [
'main.c',
'metronome.c'
]
executable(
'metrognome',
sources,
install: true,
dependencies: deps
)
metrognome_prefix = get_option('prefix')
metrognome_datadir = join_paths(metrognome_prefix, get_option('datadir'))
conf = configuration_data()
conf.set('VERSION', meson.project_version())
conf.set('METROGNOME_DATADIR', metrognome_datadir)
configure_file(
input: 'config.h.meson',
output: 'config.h',
configuration: conf
)
install_data(
'metrognome.ui',
install_dir: metrognome_datadir
)