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
|
project('fragments', 'rust',
version: '3.0.1',
meson_version: '>= 0.59.0',
license: 'GPL-3.0-or-later',
)
gnome = import('gnome')
i18n = import('i18n')
# Dependencies
dependency('dbus-1')
dependency('openssl', version: '>= 1.0')
dependency('glib-2.0', version: '>= 2.76')
dependency('gio-2.0', version: '>= 2.76')
dependency('gtk4', version: '>= 4.15.3')
dependency('libadwaita-1', version: '>=1.7')
# Initialize project variables
name = 'Fragments'
base_id = 'de.haeckerfelix.Fragments'
path_id = '/de/haeckerfelix/Fragments'
app_id = base_id
profile = get_option('profile')
datadir = join_paths(get_option('prefix'), get_option('datadir'))
localedir = join_paths(get_option('prefix'), get_option('localedir'))
bindir = join_paths(get_option('prefix'), get_option('bindir'))
# Change app id for development builds
if profile == 'development'
app_id = '@0@.Devel'.format(app_id)
endif
# Setup pre-commit hook to run checks before changes are getting committed
if profile == 'development'
message('Setting up git pre-commit hook..')
run_command('mkdir', '.git/hooks/', check: false)
run_command('cp', '-f', 'build-aux/pre-commit.hook', '.git/hooks/pre-commit', check: false)
endif
# Vendor all Rust dependencies for release tarballs
meson.add_dist_script(
'build-aux/dist-vendor.sh',
meson.project_source_root(),
join_paths(meson.project_build_root(), 'meson-dist', meson.project_name() + '-' + meson.project_version())
)
subdir('data')
subdir('src')
subdir('po')
|