summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 5 insertions, 7 deletions
diff --git a/meson.build b/meson.build
index a0d66d5..0335fec 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2021-2022 David Robillard <d@drobilla.net>
+# Copyright 2021-2023 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR GPL-3.0-or-later
project('ganv', ['c', 'cpp'],
@@ -27,11 +27,6 @@ gnome = import('gnome')
cc = meson.get_compiler('c')
cpp = meson.get_compiler('cpp')
-# Set global warning flags
-if get_option('strict') and not meson.is_subproject()
- subdir('meson/warnings')
-endif
-
# Set global warning suppressions
subdir('meson/suppressions')
add_project_arguments(c_suppressions, language: ['c'])
@@ -191,7 +186,7 @@ ganv_dep = declare_dependency(
)
# Generage pkg-config file for external dependants
-ganv_pc = pkg.generate(
+pkg.generate(
libganv,
description: 'Interactive Gtk canvas widget for graph-based interfaces',
extra_cflags: extra_args,
@@ -201,6 +196,9 @@ ganv_pc = pkg.generate(
version: meson.project_version(),
)
+# Override pkg-config dependency for internal meson dependants
+meson.override_dependency(versioned_name, ganv_dep)
+
# Install headers to a versioned include directory
install_headers(c_headers + cpp_headers, subdir: versioned_name / 'ganv')