-
Notifications
You must be signed in to change notification settings - Fork 26
/
meson.build
37 lines (31 loc) · 1.37 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
project('raider', 'c', version: '3.0.1')
i18n = import('i18n')
gnome = import('gnome')
# Get all dependencies for Raider. Secure Delete should fallback, unless this is being packaged.
raider_deps = [
dependency('gtk4',
version: '>=4.12.0',
default_options: ['media-gstreamer=disabled','build-tests=false','build-testsuite=false'],
fallback : 'gtk4'),
dependency('libadwaita-1',
version: '>=1.4.0',
default_options:['examples=false','tests=false','introspection=disabled','vapi=false'],
fallback : 'libadwaita-1'),
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,
)