Skip to content

Commit dc5e092

Browse files
committed
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.
1 parent c28759f commit dc5e092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ epoxy_has_wgl = build_wgl ? '1' : '0'
9393
# not needed when building Epoxy; we do want to add them to the generated
9494
# pkg-config file, for consumers of Epoxy
9595
gl_reqs = []
96-
if gl_dep.found()
96+
if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
9797
gl_reqs += 'gl'
9898
endif
99-
if build_egl and egl_dep.found()
99+
if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
100100
gl_reqs += 'egl'
101101
endif
102102

0 commit comments

Comments
 (0)