summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2021-01-20 13:27:36 +0000
committerGitHub <noreply@github.com>2021-01-20 13:27:36 +0000
commit7ec320d1db05d6ef1045411c2b4590a9d04540a2 (patch)
tree77bca21544d459c3da8a9cf241f9dbbc3244a717 /src
parentc7973204247c777086a94f9f99af83c1a51b2d8e (diff)
parent950b9f5b25843d95c4667ef60038e8d7b476fbb8 (diff)
downloadlibepoxy-7ec320d1db05d6ef1045411c2b4590a9d04540a2.tar.gz
Merge pull request #231 from xclaesse/meson-vars
meson: Set same variables in declare_dependency() as in pkgconfig
Diffstat (limited to 'src')
-rw-r--r--src/meson.build13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/meson.build b/src/meson.build
index 881e087..37e28f0 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -72,17 +72,22 @@ libepoxy = library(
link_args: common_ldflags,
)
+epoxy_has_glx = build_glx ? '1' : '0'
+epoxy_has_egl = build_egl ? '1' : '0'
+epoxy_has_wgl = build_wgl ? '1' : '0'
+
libepoxy_dep = declare_dependency(
link_with: libepoxy,
include_directories: libepoxy_inc,
dependencies: epoxy_deps,
sources: epoxy_headers,
+ variables: {
+ 'epoxy_has_glx': epoxy_has_glx,
+ 'epoxy_has_egl': epoxy_has_egl,
+ 'epoxy_has_wgl': epoxy_has_wgl,
+ },
)
-epoxy_has_glx = build_glx ? '1' : '0'
-epoxy_has_egl = build_egl ? '1' : '0'
-epoxy_has_wgl = build_wgl ? '1' : '0'
-
# We don't want to add these dependencies to the library, as they are
# not needed when building Epoxy; we do want to add them to the generated
# pkg-config file, for consumers of Epoxy