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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
# SPDX-License-Identifier: GPL-3.0-or-later
project('graphs', 'c', 'vala',
version: '1.8.5',
meson_version: '>= 1.2.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gio-2.0'),
dependency('gtk4'),
dependency('libadwaita-1', version: '>= 1.5'),
dependency('gee-0.8'),
]
valac = meson.get_compiler('vala')
devenv = environment()
devenv.set('GRAPHS_DEVEL_PATH', meson.current_source_dir())
application_id = 'se.sjoerd.Graphs'
copyright = '2022 - 2024'
homepage_url = 'https://apps.gnome.org/Graphs/'
vcs_url = 'https://gitlab.gnome.org/World/Graphs'
issue_url = vcs_url + '/issues'
help_url = 'https://world.pages.gitlab.gnome.org/Graphs/help/'
author = 'Sjoerd Stendahl et al.'
i18n = import('i18n')
gnome = import('gnome')
python = import('python').find_installation('python3')
prefix = get_option('prefix')
datadir = get_option('datadir')
bindir = get_option('bindir')
version = meson.project_version()
pkgdatadir = join_paths(prefix, datadir, meson.project_name())
localedir = join_paths(prefix, get_option('localedir'))
debug = get_option('buildtype') == 'debug'
if debug
version += '-' + run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip()
endif
conf = configuration_data()
conf.set('APPLICATION_ID', application_id)
conf.set('GETTEXT_PACKAGE', meson.project_name())
conf.set('AUTHOR', author)
conf.set('COPYRIGHT', copyright)
conf.set('VCS_URL', vcs_url)
conf.set('ISSUE_URL', issue_url)
conf.set('HELP_URL', help_url)
conf.set('LOCALEDIR', localedir)
conf.set('PKGDATADIR', pkgdatadir)
conf.set('PROJECT_NAME', meson.project_name())
conf.set('PYTHON', python.full_path())
conf.set('HOMEPAGE_URL', homepage_url)
conf.set('DEBUG', debug)
vala_conf = configuration_data()
vala_conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
vala_conf.set_quoted('LOCALEDIR', localedir)
vala_conf.set_quoted('VERSION', version)
vala_conf.set_quoted('AUTHOR', author)
vala_conf.set_quoted('HOMEPAGE_URL', homepage_url)
vala_conf.set_quoted('ISSUE_URL', issue_url)
add_project_arguments (
'-DGETTEXT_PACKAGE="' + meson.project_name() + '"',
language: 'c'
)
subdir('data')
subdir('help')
subdir('graphs')
subdir('po')
subdir('tests')
meson.add_devenv(devenv)
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
update_mime_database: true,
)
|