-
Bruce Cowan authoredBruce Cowan authored
meson.build 1.11 KiB
# SPDX-FileCopyrightText: 2016-2022 Bruce Cowan <bruce@bcowan.me.uk>
#
# SPDX-License-Identifier: CC0-1.0
project('rugby', 'c',
version: '0.3.0',
license:'GPLv3+',
meson_version: '>= 0.57.0',
default_options: [
'buildtype=debugoptimized',
'c_std=gnu11',
'warning_level=3'
],
)
datadir = get_option('datadir')
gnome = import('gnome')
gio_dep = dependency('gio-2.0', version: '>= 2.46')
gtk_dep = dependency('gtk4', version: '>= 4.0')
conf = configuration_data()
conf.set_quoted('VERSION','@VCS_TAG@')
config_h = vcs_tag(
input: configure_file(
output: 'config.h.in',
configuration: conf
),
output: 'config.h',
)
cflags = []
cflags += ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_46']
cflags += ['-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_0',
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_0']
cflags += '-Wno-overlength-strings'
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments(cflags),
language: 'c')
subdir('data')
subdir('src')
gnome.post_install(glib_compile_schemas: true)