Debian Codegraph @

meson.build

raw ◀ ▶
4 Debian patches touch this file
1 project('fragments', 'rust',
2 version: '3.0.1',
3 meson_version: '>= 0.59.0',
4 license: 'GPL-3.0-or-later',
5 )
6
7 gnome = import('gnome')
8 i18n = import('i18n')
9
10 # Dependencies
11 dependency('dbus-1')
12 dependency('openssl', version: '>= 1.0')
13 dependency('glib-2.0', version: '>= 2.76')
14 dependency('gio-2.0', version: '>= 2.76')
•15 dependency('gtk4', version: '>= 4.15.3')
•16 dependency('libadwaita-1', version: '>=1.7')
17
18 # Initialize project variables
19 name = 'Fragments'
20 base_id = 'de.haeckerfelix.Fragments'
21 path_id = '/de/haeckerfelix/Fragments'
22 app_id = base_id
23 profile = get_option('profile')
24 datadir = join_paths(get_option('prefix'), get_option('datadir'))
25 localedir = join_paths(get_option('prefix'), get_option('localedir'))
26 bindir = join_paths(get_option('prefix'), get_option('bindir'))
27
28 # Change app id for development builds
29 if profile == 'development'
30 app_id = '@[email protected]'.format(app_id)
31 endif
32
33 # Setup pre-commit hook to run checks before changes are getting committed
34 if profile == 'development'
35 message('Setting up git pre-commit hook..')
36 run_command('mkdir', '.git/hooks/', check: false)
37 run_command('cp', '-f', 'build-aux/pre-commit.hook', '.git/hooks/pre-commit', check: false)
38 endif
39
40 # Vendor all Rust dependencies for release tarballs
41 meson.add_dist_script(
42 'build-aux/dist-vendor.sh',
43 meson.project_source_root(),
44 join_paths(meson.project_build_root(), 'meson-dist', meson.project_name() + '-' + meson.project_version())
45 )
46
47 subdir('data')
48 subdir('src')
49 subdir('po')