-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
41 lines (32 loc) · 875 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
project(
'com.cassidyjames.butler',
'vala', 'c',
version: '1.3.0',
meson_version: '>=1.5.1',
)
app_id = meson.project_name()
app_name = 'Butler'
profile = get_option('profile')
if profile == 'devel'
app_id += '.Devel'
app_name += ' (Devel)'
endif
summary({
'Profile': profile,
}, section: 'Development')
config_include = include_directories('.')
config = configuration_data()
config.set_quoted('APP_ID', app_id)
config.set_quoted('APP_NAME', app_name)
config.set_quoted('VERSION', meson.project_version())
config.set_quoted('PROFILE', profile)
config_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: config
)
gnome = import('gnome')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(app_id), language:'c')
subdir('data')
subdir('src')
meson.add_install_script('build-aux' / 'meson'/ 'post_install.py')