-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
meson.build
48 lines (41 loc) · 1.3 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
47
48
#####################
# Project meta info #
#####################
project(
'srain', 'c',
version: '1.8.0',
license: 'GPL3',
meson_version: '>= 0.47.0'
)
app_id = 'im.srain.Srain'
app_name = meson.project_name()
app_pretty_name = 'Srain'
app_generic_name = 'Srain IRC Client'
app_desc = 'Modern IRC client written in GTK'
app_url = 'https://srain.silverrainz.me'
app_bugreport = 'https://github.com/SrainApp/' + app_name + '/issues/new'
app_exec = app_name
# Meson builtin option
if get_option('buildtype') == 'debug'
app_pretty_name += ' (Development)'
app_generic_name += ' (Development)'
app_desc += ' (Development version)'
endif
############################
# Installation directories #
############################
prefix = get_option('prefix')
bin_dir = join_paths(prefix, get_option('bindir'))
data_dir = join_paths(prefix, get_option('datadir'))
pkg_data_dir = join_paths(data_dir, meson.project_name())
# https://github.com/mesonbuild/meson/issues/825
pkg_doc_dir = join_paths(data_dir, 'doc', meson.project_name())
icons_dir = join_paths(data_dir, 'icons')
po_dir = join_paths(meson.source_root (), 'po')
sys_conf_dir = join_paths(prefix, get_option('sysconfdir'))
pkg_sys_conf_dir = join_paths(sys_conf_dir, meson.project_name())
srcs = []
subdir('data')
subdir('po')
subdir('src')
subdir('docs')