forked from ztefn/haguichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
45 lines (36 loc) · 1.05 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
project(
'haguichi',
['vala', 'c'],
version: '1.4.2',
default_options: ['prefix=/usr'],
meson_version: '>= 0.40'
)
app_name = meson.project_name()
app_id = 'com.github.ztefn.' + app_name
app_version = meson.project_version()
if get_option('use-rdnn-everywhere') or get_option('for-elementary')
pkg_name = app_id
else
pkg_name = app_name
endif
binary_name = pkg_name
icon_name = app_id
gettext_pkg = pkg_name
add_project_arguments(
'-DGETTEXT_PACKAGE="' + gettext_pkg + '"',
language: 'c'
)
conf = configuration_data()
conf.set('PACKAGE_NAME', pkg_name)
conf.set('VERSION', app_version)
conf.set('BINARY_NAME', binary_name)
conf.set('ICON_NAME', icon_name)
conf.set('GETTEXT_PACKAGE', gettext_pkg)
conf.set('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
conf.set('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
i18n = import('i18n')
po_dir = join_paths(meson.source_root(), 'po')
subdir('data')
subdir('po')
subdir('src')
meson.add_install_script('meson_post_install.py')