From 2c52c6ec921130bed612b96c2939207391d5237c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 6 Feb 2025 20:50:15 -0500 Subject: Add option to disable C++ bindings --- examples/meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/meson.build b/examples/meson.build index 0c4f998..ef77e65 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -1,4 +1,4 @@ -# Copyright 2021-2023 David Robillard +# Copyright 2021-2025 David Robillard # SPDX-License-Identifier: 0BSD OR ISC data_dir = get_option('prefix') / get_option('datadir') / 'pugl-0' @@ -148,6 +148,10 @@ else elif target == 'pugl_print_events' dependencies += [pugl_stub_dep] elif target == 'pugl_cpp_demo' + if not is_variable('puglpp_dep') + continue + endif + dependencies += [puglpp_dep] endif @@ -185,8 +189,13 @@ else defines = [] if target == 'pugl_vulkan_cpp_demo' + if not is_variable('puglpp_dep') + continue + endif + source += ['file_utils.c'] defines += ['-D_POSIX_C_SOURCE=200809L'] + dependencies += [puglpp_dep] endif executable( -- cgit v1.2.1