-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathmeson.build
71 lines (65 loc) · 2.06 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
70
71
vala_files = [
'Application.vala',
'HostnameValidator.vala',
'MainWindow.vala',
'Utils.vala',
'Helpers/InstallerDaemon.vala',
'Helpers/LocaleHelper.vala',
'Helpers/LogHelper.vala',
'Objects/Configuration.vala',
'Objects/KeyboardLayout.vala',
'Objects/KeyboardVariant.vala',
'Objects/Mount.vala',
'Views/AbstractInstallerView.vala',
'Views/CheckView.vala',
'Views/DiskView.vala',
'Views/DriversView.vala',
'Views/EncryptView.vala',
'Views/ErrorView.vala',
'Views/KeyboardLayoutView.vala',
'Views/LanguageView.vala',
'Views/PartitioningView.vala',
'Views/ProgressView.vala',
'Views/TryInstallView.vala',
'Views/SuccessView.vala',
'Widgets/DecryptMenu.vala',
'Widgets/DescriptionRow.vala',
'Widgets/DiskBar.vala',
'Widgets/DiskGrid.vala',
'Widgets/InstallTypeGrid.vala',
'Widgets/PartitionBlock.vala',
'Widgets/PartitionMenu.vala',
'Widgets/Terminal.vala',
'Widgets/VariantWidget.vala',
common_files,
]
configuration_data = configuration_data()
configuration_data.set('GETTEXT_PACKAGE', meson.project_name())
configuration_data.set('LANG_LIST', get_option('supported_languages'))
configuration_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
isocodes = dependency('iso-codes')
isocodes_prefix = isocodes.get_pkgconfig_variable('prefix')
isocodes_location = join_paths(isocodes_prefix, get_option('datadir'), 'iso-codes', 'json')
configuration_data.set('ISO_CODES_LOCATION', isocodes_location)
configuration_data.set('PREFERRED_LANG_LIST', get_option('preferred_languages'))
config_file = configure_file(
input: 'Config.vala.in',
output: 'Config.vala',
configuration: configuration_data
)
gui_dependencies = [
gee_dep,
glib_dep,
gobject_dep,
granite_dep,
gtk_dep,
adw_dep,
json_glib_dep,
pantheon_wayland_dep,
pwquality_dep,
xkbregistry_dep
]
executable(meson.project_name(), vala_files, config_file,
asresources,
dependencies : gui_dependencies,
install: true)