Debian Codegraph @

meson.build

raw ◀ ▶
Source reconstructed at patch state 0 of 4 — not the installed (fully patched) source.
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.12.0')
16 dependency('libadwaita-1', version: '>=1.5.0')
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 vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
24 profile = get_option('profile')
25 datadir = join_paths(get_option('prefix'), get_option('datadir'))
26 localedir = join_paths(get_option('prefix'), get_option('localedir'))
27 bindir = join_paths(get_option('prefix'), get_option('bindir'))
28
29 # Change app id for development builds
30 if profile == 'development'
31 app_id = '@[email protected]'.format(app_id)
32 endif
33
34 # Setup pre-commit hook to run checks before changes are getting committed
35 if profile == 'development'
36 message('Setting up git pre-commit hook..')
37 run_command('mkdir', '.git/hooks/', check: false)
38 run_command('cp', '-f', 'build-aux/pre-commit.hook', '.git/hooks/pre-commit', check: false)
39 endif
40
41 # Vendor all Rust dependencies for release tarballs
42 meson.add_dist_script(
43 'build-aux/dist-vendor.sh',
44 meson.project_source_root(),
45 join_paths(meson.project_build_root(), 'meson-dist', meson.project_name() + '-' + meson.project_version())
46 )
47
48 subdir('data')
49 subdir('src')
50 subdir('po')