forked from mjakeman/extension-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
46 lines (40 loc) · 1.29 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
project('extension-manager', 'c',
version: '0.4.2',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2',
'c_std=gnu11',
],
)
i18n = import('i18n')
if get_option('development')
app_title = 'Extension Manager (Development)'
app_id = 'com.mattjakeman.ExtensionManager.Devel'
else
app_title = 'Extension Manager'
app_id = 'com.mattjakeman.ExtensionManager'
endif
config_h = configuration_data()
config_h.set_quoted('APP_VERSION', meson.project_version())
config_h.set_quoted('GETTEXT_PACKAGE', 'extension-manager')
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_h.set_quoted('APP_ID', app_id)
config_h.set_quoted('PKG_NAME', get_option('package'))
config_h.set_quoted('PKG_DISTRIBUTOR', get_option('distributor'))
config_h.set10('IS_OFFICIAL', get_option('official'))
config_h.set10('IS_DEVEL', get_option('development'))
config_h.set10('WITH_BACKTRACE', get_option('backtrace'))
configure_file(
output: 'exm-config.h',
configuration: config_h,
)
add_project_arguments([
'-I' + meson.project_build_root(),
], language: 'c')
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)