File: meson.build

package info (click to toggle)
gnome-robots 1%3A41.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,564 kB
  • sloc: xml: 97; makefile: 25; sh: 7
file content (49 lines) | stat: -rw-r--r-- 1,623 bytes parent folder | download | duplicates (2)
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('gnome-robots', ['rust'],
    version: '41.2',
    meson_version: '>= 0.59')

gnome = import('gnome')
i18n = import('i18n')

application_id = 'org.gnome.Robots'

gio_dependency = dependency('gio-2.0', version: '>= 2.82')
glib_dependency = dependency('glib-2.0', version: '>= 2.82')
gtk_dependency = dependency('gtk4', version: '>= 4.16.1')
adw_dependency = dependency('libadwaita-1', version: '>= 1.6')
rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.59.2')

cargo = find_program('cargo', required: true)
cargo_version = run_command(cargo, '--version', check: true).stdout().strip()
message(cargo_version)
rustc_version = run_command('rustc', '--version', check: true).stdout().strip()
message(rustc_version)

if get_option('profile') == 'debug'
    profile = 'debug'
else
    profile = 'release'
endif

bindir      = join_paths(get_option('prefix'), get_option('bindir'))
datadir     = join_paths(get_option('prefix'), get_option('datadir'))
pkgdatadir  = join_paths(datadir, meson.project_name())

config_rs = configuration_data()
config_rs.set_quoted('PACKAGE', meson.project_name())
config_rs.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_rs.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_rs.set_quoted('VERSION', meson.project_version())
config_rs.set_quoted('DATA_DIRECTORY', pkgdatadir)
config_rs.set_quoted('SOUND_DIRECTORY', join_paths(pkgdatadir, 'sounds'))


subdir('data')
subdir('help')
subdir('po')
subdir('src')

gnome.post_install(
    gtk_update_icon_cache: true,
    glib_compile_schemas: true,
    update_desktop_database: true)