forked from ADBeveridge/raider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
30 lines (25 loc) · 938 Bytes
/
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
project('raider', 'c', version: '2.0.0')
i18n = import('i18n')
gnome = import('gnome')
# Get all dependencies for Raider. Secure Delete should fallback, unless this is being packaged.
raider_deps = [
dependency('gtk4'),
dependency('libadwaita-1', version: '>= 1.0'),
dependency('gio-unix-2.0')
]
# Create config.h file entirely in Meson.
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h.set_quoted('GETTEXT_PACKAGE', 'raider')
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
configure_file(output: 'raider-config.h', configuration: config_h)
add_project_arguments(['-I' + meson.project_build_root(),], language: 'c')
# Folders with individual meson.build files.
subdir('data')
subdir('src')
subdir('po')
# GNOME specific actions to perform.
gnome.post_install(
gtk_update_icon_cache: true,
update_desktop_database: true,
)