forked from linuxmint/timeshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
49 lines (42 loc) · 1.12 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
49
project(
'timeshift', 'vala', 'c',
version: '22.11.2',
license : 'GPL-2.0-or-later',
default_options: ['c_std=c99', 'build.c_std=c99'])
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gtk+-3.0'),
dependency('gio-2.0'),
dependency('gio-unix-2.0'),
dependency('json-glib-1.0'),
dependency('vte-2.91'),
dependency('gee-0.8'),
meson.get_compiler('vala').find_library('posix'),
meson.get_compiler('c').find_library('m'),
]
enable_xapp = get_option('xapp')
if enable_xapp
xapp_dep = dependency('xapp')
add_project_arguments('-D', 'XAPP', language: 'vala')
dependencies += xapp_dep
endif
# Include the translations module
i18n = import('i18n')
am_cflags = [
'-fstack-protector',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
]
add_project_arguments(am_cflags, language: 'c')
add_project_arguments('-D', 'GTK3_18', language: 'vala')
subdir('files')
subdir('src')
subdir('po')
enable_man = get_option('man')
if enable_man
subdir('docs/man')
endif
install_data(
sources: 'debian/timeshift.appdata.xml',
install_dir: join_paths(get_option('datadir'), 'metainfo')
)