forked from pantheon-tweaks/pantheon-tweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
69 lines (61 loc) · 1.72 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
project(
'pantheon-tweaks',
'vala', 'c',
version: '2.1.0',
meson_version: '>= 0.57.0'
)
gettext_name = meson.project_name()
# Use this when reverse-DNS format is required
application_id = 'io.github.pantheon_tweaks.' + meson.project_name()
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(gettext_name),
language:'c'
)
config_data = configuration_data()
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
config_data.set_quoted('GETTEXT_PACKAGE', gettext_name)
config_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: config_data
)
subdir('data')
subdir('po')
source_files = files(
'src/MainWindow.vala',
'src/Tweaks.vala',
'src/Settings/AccountsService.vala',
'src/Settings/GtkSettings.vala',
'src/Settings/ThemeSettings.vala',
'src/Settings/XSettings.vala',
'src/Panes/AppearancePane.vala',
'src/Panes/FontsPane.vala',
'src/Panes/MiscPane.vala',
'src/Panes/FilesPane.vala',
'src/Panes/TerminalPane.vala',
'src/Widgets/BasePane.vala',
'src/Widgets/Categories.vala',
'src/Widgets/OpenButton.vala',
)
executable(
meson.project_name(),
source_files,
config_file,
stylesheet_resource,
dependencies: [
dependency('gee-0.8'),
dependency('glib-2.0'),
dependency('granite-7', version: '>= 7.1.0'),
dependency('gtk4', version: '>= 4.10'),
dependency('pango'),
dependency('switchboard-3', version: '>= 8.0.0'),
meson.get_compiler('vala').find_library('posix')
],
install: true
)
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true
)