Debian Codegraph @

meson.build

raw
1 project('gnome-robots', ['rust'],
2 version: '50.0',
3 meson_version: '>= 0.59')
4
5 gnome = import('gnome')
6 i18n = import('i18n')
7
8 application_id = 'org.gnome.Robots'
9
10 gio_dependency = dependency('gio-2.0', version: '>= 2.86')
11 glib_dependency = dependency('glib-2.0', version: '>= 2.86')
12 gtk_dependency = dependency('gtk4', version: '>= 4.20.0')
13 adw_dependency = dependency('libadwaita-1', version: '>= 1.8')
14 glycin_dependency = dependency('glycin-2', version: '>= 2.0')
15 glycin_gtk4_dependency = dependency('glycin-gtk4-2', version: '>= 2.0')
16
17 cargo = find_program('cargo', required: true)
18 cargo_version = run_command(cargo, '--version', check: true).stdout().strip()
19 message(cargo_version)
20 rustc_version = run_command('rustc', '--version', check: true).stdout().strip()
21 message(rustc_version)
22
23 if get_option('profile') == 'debug'
24 profile = 'debug'
25 else
26 profile = 'release'
27 endif
28
29 bindir = join_paths(get_option('prefix'), get_option('bindir'))
30 datadir = join_paths(get_option('prefix'), get_option('datadir'))
31 pkgdatadir = join_paths(datadir, meson.project_name())
32
33 config_rs = configuration_data()
34 config_rs.set_quoted('PACKAGE', meson.project_name())
35 config_rs.set_quoted('GETTEXT_PACKAGE', meson.project_name())
36 config_rs.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
37 config_rs.set_quoted('VERSION', meson.project_version())
38 config_rs.set_quoted('DATA_DIRECTORY', pkgdatadir)
39 config_rs.set_quoted('SOUND_DIRECTORY', join_paths(pkgdatadir, 'sounds'))
40
41
42 subdir('data')
43 subdir('help')
44 subdir('po')
45 subdir('src')
46
47 gnome.post_install(
48 gtk_update_icon_cache: true,
49 glib_compile_schemas: true,
50 update_desktop_database: true)