summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-18 11:01:30 +0100
committerRan Benita <ran@unusedvar.com>2023-02-19 13:00:38 +0200
commit5b5ec0ee2781fb540c60f7f554787cef1e2aaa87 (patch)
treec292fbb0569f4fa47470ba8321cd44c9e9e844bc
parentc6ff79d5c148c5e3f3e4735b683c330fc4546f67 (diff)
downloadlibxkbcommon-5b5ec0ee2781fb540c60f7f554787cef1e2aaa87.tar.gz
libxkbcommon-5b5ec0ee2781fb540c60f7f554787cef1e2aaa87.tar.bz2
libxkbcommon-5b5ec0ee2781fb540c60f7f554787cef1e2aaa87.zip
build: override dependency for use as subproject
This allows xkbcommon to be used as a subproject. Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 245e7b1..8133cef 100644
--- a/meson.build
+++ b/meson.build
@@ -266,6 +266,9 @@ dep_libxkbcommon = declare_dependency(
link_with: libxkbcommon,
include_directories: include_directories('include'),
)
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('xkbcommon', dep_libxkbcommon)
+endif
pkgconfig.generate(
libxkbcommon,
name: 'xkbcommon',
@@ -334,6 +337,9 @@ You can disable X11 support with -Denable-x11=false.''')
link_with: libxkbcommon_x11,
include_directories: include_directories('include'),
)
+ if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('xkbcommon-x11', dep_libxkbcommon_x11)
+ endif
pkgconfig.generate(
libxkbcommon_x11,
name: 'xkbcommon-x11',
@@ -398,6 +404,9 @@ if get_option('enable-xkbregistry')
link_with: libxkbregistry,
include_directories: include_directories('include'),
)
+ if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('xkbregistry', dep_libxkbregistry)
+ endif
endif
man_pages = []