spice-protocol/meson.build
correctmost 3a9e3668f1 build-sys: Fix build error when sanitizers are enabled
Re-running 'meson setup' with sanitizer flags caused the following
error: 'ERROR: Unknown options: "b_lundef, b_sanitize"'

This is a workaround for an upstream Meson issue:
https://github.com/mesonbuild/meson/issues/13651

Signed-off-by: correctmost <126085-correctmost@users.noreply.gitlab.freedesktop.org>
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2025-04-02 06:39:27 +01:00

27 lines
768 B
Meson

#
# project definition
#
project('spice-protocol',
'c',
version : '0.14.5',
license : 'BSD',
meson_version : '>= 0.41.0')
subdir('spice')
spice_protocol_dep = declare_dependency(include_directories : include_directories('.'))
#
# spice-protocol.pc generation
#
datadir = get_option('datadir')
pkgconfig_dir = join_paths(get_option('prefix'), datadir, 'pkgconfig')
pkgconfig = import('pkgconfig')
pkgconfig.generate(name : meson.project_name(),
description : 'SPICE protocol headers',
version : meson.project_version(),
subdirs : 'spice-1',
install_dir : pkgconfig_dir,
variables : 'datadir=@0@'.format(join_paths('${prefix}', datadir)))