-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
43 lines (37 loc) · 1.05 KB
/
meson.build
File metadata and controls
43 lines (37 loc) · 1.05 KB
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
project(
'com.github.oowoosh0.done',
'vala', 'c',
version: '0.1',
meson_version: '>=0.58.0'
)
gnome = import('gnome')
i18n = import('i18n')
profile = get_option('profile')
if profile == 'devel'
app_id = meson.project_name() + '.Devel'
app_name = 'DoneDevel'
app_path = '/com/github/oowoosh0/done/Devel'
else
app_id = meson.project_name()
app_name = 'Done'
app_path = '/com/github/oowoosh0/done'
endif
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (app_id), language:'c')
conf_data = configuration_data()
conf_data.set_quoted('APP_ID', app_id)
conf_data.set('APP_ID_UNQUOTED', app_id)
conf_data.set('APP_NAME', app_name)
conf_data.set('APP_PATH', app_path)
conf_data.set_quoted('PROFILE', profile)
conf_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
conf_data.set_quoted('GETTEXT_PACKAGE', app_id)
conf_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: conf_data
)
dependencies = [
dependency('gtk4'),
dependency('granite-7')
]
subdir('src')