File: meson.build

package info (click to toggle)
gnome-klotski 1:3.32.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,500 kB
  • sloc: xml: 101; python: 11; sh: 7; makefile: 6
file content (38 lines) | stat: -rw-r--r-- 1,391 bytes parent folder | download
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
project('gnome-klotski', 'vala', 'c',
        version: '3.32.0')

project_id = 'org.gnome.Klotski'
i18n = import('i18n')
gnome = import('gnome')
# used to run post install script
python3 = import('python3')

gee_dependency = dependency('gee-0.8')
glib_dependency = dependency('glib-2.0', version: '>= 2.40.0')
gnome_games_support_dependency = dependency('libgnome-games-support-1')
gtk_dependency = dependency('gtk+-3.0', version: '>= 3.12.0')
rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
posix_dependency = meson.get_compiler('vala').find_library('posix')

# Set gettext package name
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language: 'c')

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

conf = configuration_data ()
conf.set_quoted ('VERSION', meson.project_version())
conf.set_quoted ('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted ('DATA_DIRECTORY', datadir)
conf.set_quoted ('LOCALEDIR', localedir)

configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')

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

meson.add_install_script(python3.find_python().path(),
                         join_paths(meson.source_root(), 'build-aux', 'meson_post_install.py'))