Skip to content

Commit

Permalink
pangolin: EGL is only available on Linux/FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Apr 27, 2024
1 parent 29eead9 commit 749182b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/pangolin/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def requirements(self):
self.requires("eigen/3.4.0", transitive_headers=True, transitive_libs=True)
self.requires("glew/2.2.0", transitive_headers=True, transitive_libs=True)
self.requires("opengl/system", transitive_headers=True, transitive_libs=True)
self.requires("egl/system", transitive_headers=True, transitive_libs=True)
if self.settings.os in ["Linux", "FreeBSD"]:
self.requires("egl/system", transitive_headers=True, transitive_libs=True)
if self.options.get_safe("with_wayland"):
# Wayland 1.20+ is not compatible as of v0.9.1
self.requires("wayland/1.19.0")
Expand Down Expand Up @@ -342,7 +343,9 @@ def _add_component(name, requires):
if self.options.with_uvc:
pango_video.requires.extend(["libuvc::libuvc", "libusb::libusb"])

pango_windowing = _add_component("pango_windowing", requires=["pango_core", "pango_opengl", "egl::egl"])
pango_windowing = _add_component("pango_windowing", requires=["pango_core", "pango_opengl"])
if self.settings.os in ["Linux", "FreeBSD"]:
pango_windowing.requires.append("egl::egl")
if is_apple_os(self):
pango_windowing.frameworks.append("Cocoa")
if self.options.get_safe("with_wayland"):
Expand Down

0 comments on commit 749182b

Please sign in to comment.