summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Schoonjans <Tom.Schoonjans@diamond.ac.uk>2018-02-28 13:43:00 +0000
committerTom Schoonjans <Tom.Schoonjans@diamond.ac.uk>2018-03-04 10:40:55 +0000
commitdc5e092584f5ead9aebba55444ac62ea0ff95e56 (patch)
treed3b71fab65e4586ef950e45cc68c8e97cc1a9575 /src
parentc28759fb3a53dc4628ea2e95f6d4bd2f6980b32d (diff)
downloadlibepoxy-dc5e092584f5ead9aebba55444ac62ea0ff95e56.tar.gz
meson: do not add gl to pkg-config file on macOS
Even though meson will find the dependency gl on macOS, this does not mean that there is a pkg-config file for it, as meson does not use pkg-config to establish its presence. It should therefore not be added to the libepoxy pkg-config file as a (private) requirement.
Diffstat (limited to 'src')
-rw-r--r--src/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meson.build b/src/meson.build
index 3401075..66e28c1 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -93,10 +93,10 @@ epoxy_has_wgl = build_wgl ? '1' : '0'
# not needed when building Epoxy; we do want to add them to the generated
# pkg-config file, for consumers of Epoxy
gl_reqs = []
-if gl_dep.found()
+if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
gl_reqs += 'gl'
endif
-if build_egl and egl_dep.found()
+if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
gl_reqs += 'egl'
endif