meson.build 1.78 KB
Newer Older
1
project('gnome-taquin', 'vala', 'c',
Arnaud Bonatti's avatar
Arnaud Bonatti committed
2
    version: '3.32.0')
3 4 5 6 7 8 9

project_id = 'org.gnome.Taquin'

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

10
gio_dependency = dependency('gio-2.0', version: '>= 2.40.0')
11
glib_dependency = dependency('glib-2.0', version: '>= 2.40.0')
12
gtk_dependency = dependency('gtk+-3.0', version: '>= 3.22.23')
13
rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
14 15
canberra_dependency = dependency('libcanberra')
canberra_gtk3_dependency = dependency('libcanberra-gtk3', version: '>= 0.26')
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
posix_dependency = meson.get_compiler('vala').find_library('posix')

desktop_file_validate = find_program('desktop-file-validate', required: false)
appstream_util = find_program('appstream-util', required: false)
glib_compile_schema = find_program('glib-compile-schemas', required: true)

add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language: 'c')

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

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

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

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

Arnaud Bonatti's avatar
Arnaud Bonatti committed
43 44
meson.add_install_script(python3.find_python().path(), join_paths(meson.source_root(),
                                                                  'build-aux',
45
                                                                  'meson_post_install.py'))