BastionGuard/thirdparty/bastionguard-backup/meson.build
specialworld83 f0f913a209 Release 2.0
2026-07-15 10:52:22 +02:00

54 lines
1.2 KiB
Meson

project(
'bastionguard-backup',
'vala',
'c',
version : '2.0',
license : 'GPL-2.0-or-later',
meson_version : '>= 0.54.0',
default_options : ['c_std=c99', 'build.c_std=c99']
)
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gtk4'),
dependency('gio-2.0'),
dependency('gio-unix-2.0'),
dependency('json-glib-1.0'),
dependency('vte-2.91-gtk4'),
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
error('XApp support is disabled for the GTK4 port because libxapp is GTK3-based and pulls gtk+-3.0 into the build.')
endif
# Include the translations module
i18n = import('i18n')
gnome = import('gnome')
am_cflags = [
'-fstack-protector',
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
]
add_project_arguments(am_cflags, language: 'c')
add_project_arguments('-D', 'GTK4', language: 'vala')
subdir('files')
subdir('src')
subdir('po')
enable_man = get_option('man')
if enable_man
subdir('docs/man')
endif
install_data(
sources: 'debian/org.bastionguard.backup.metainfo.xml',
install_dir: join_paths(get_option('datadir'), 'metainfo')
)