2017-09-05 21:38:28 +00:00
|
|
|
project('gnome-chess', [ 'vala', 'c' ],
|
2024-08-02 15:40:42 +00:00
|
|
|
version: '47.beta',
|
2017-09-05 21:38:28 +00:00
|
|
|
license: 'GPL3+',
|
2022-09-03 16:07:09 +00:00
|
|
|
meson_version: '>= 0.59',
|
2017-09-05 21:38:28 +00:00
|
|
|
)
|
2019-01-09 13:20:33 +00:00
|
|
|
application_id = 'org.gnome.Chess'
|
2017-09-05 21:38:28 +00:00
|
|
|
gnome = import('gnome')
|
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
|
|
# Add our config VAPI
|
|
|
|
add_project_arguments(
|
|
|
|
[
|
2022-08-09 20:11:10 +00:00
|
|
|
'--vapidir', join_paths(meson.project_source_root(), 'src'),
|
2017-09-05 21:38:28 +00:00
|
|
|
'--pkg', 'config',
|
|
|
|
],
|
|
|
|
language: 'vala'
|
|
|
|
)
|
|
|
|
|
|
|
|
# Some variables
|
|
|
|
config_h_dir = include_directories('.')
|
|
|
|
localedir = join_paths(get_option('prefix'), get_option('localedir'))
|
|
|
|
datadir = join_paths(get_option('prefix'), get_option('datadir'))
|
|
|
|
pkgdatadir = join_paths(datadir, meson.project_name())
|
|
|
|
sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
|
|
|
|
pkgsysconfdir = join_paths(sysconfdir, meson.project_name())
|
2022-08-09 20:11:10 +00:00
|
|
|
po_dir = join_paths(meson.project_source_root(), 'po')
|
2020-05-03 16:41:08 +00:00
|
|
|
bindir = join_paths(get_option('prefix'), get_option('bindir'))
|
2017-09-05 21:38:28 +00:00
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
min_glib_version = '2.44.0'
|
|
|
|
|
|
|
|
gio = dependency('gio-unix-2.0', version: '>=' + min_glib_version)
|
|
|
|
glib = dependency('glib-2.0', version: '>=' + min_glib_version)
|
|
|
|
gmodule = dependency('gmodule-2.0', version: '>=' + min_glib_version)
|
2024-07-08 14:24:18 +00:00
|
|
|
gtk = dependency('gtk4', version: '>= 4.10')
|
2024-07-08 14:27:17 +00:00
|
|
|
libadwaita = dependency('libadwaita-1', version: '>= 1.5')
|
2020-12-04 21:25:19 +00:00
|
|
|
librsvg = dependency('librsvg-2.0', version: '>= 2.46.0')
|
2022-08-09 20:03:12 +00:00
|
|
|
pangocairo = dependency('pangocairo')
|
2017-09-05 21:38:28 +00:00
|
|
|
|
2024-06-18 17:59:52 +00:00
|
|
|
m = meson.get_compiler('c').find_library('m', required : false)
|
|
|
|
|
2017-09-05 21:38:28 +00:00
|
|
|
posix = meson.get_compiler('vala').find_library('posix')
|
|
|
|
|
|
|
|
# Configuration
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
|
|
|
conf.set_quoted('LOCALEDIR', localedir)
|
|
|
|
conf.set_quoted('PACKAGE_NAME', meson.project_name())
|
|
|
|
conf.set_quoted('PACKAGE_STRING', meson.project_name())
|
|
|
|
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
|
|
conf.set_quoted('PKGDATADIR', pkgdatadir)
|
|
|
|
conf.set_quoted('SYSCONFDIR', sysconfdir)
|
|
|
|
conf.set_quoted('VERSION', meson.project_version())
|
2020-12-04 18:12:58 +00:00
|
|
|
conf.set_quoted('G_LOG_DOMAIN', meson.project_name())
|
2017-09-05 21:38:28 +00:00
|
|
|
configure_file(output: 'config.h', configuration: conf)
|
|
|
|
|
|
|
|
# Post-install scripts
|
2022-09-03 16:07:09 +00:00
|
|
|
gnome.post_install(
|
|
|
|
glib_compile_schemas: true,
|
|
|
|
gtk_update_icon_cache: true,
|
|
|
|
update_desktop_database: true,
|
|
|
|
)
|
2017-09-05 21:38:28 +00:00
|
|
|
|
|
|
|
# Subfolders
|
|
|
|
subdir('data')
|
|
|
|
subdir('po')
|
|
|
|
subdir('lib')
|
2020-12-24 18:08:35 +00:00
|
|
|
subdir('engine')
|
2017-09-05 21:38:28 +00:00
|
|
|
subdir('src')
|
|
|
|
subdir('tests')
|
|
|
|
subdir('help')
|