Skip to content

Commit

Permalink
pangolin: export OS macros
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Apr 27, 2024
1 parent 749182b commit 0031a1d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/pangolin/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,17 @@ def _add_component(name, requires):
pango_core.defines = ["HAVE_EIGEN", "HAVE_GLEW"]
if self.settings.os in ["Linux", "FreeBSD"]:
pango_core.system_libs.extend(["pthread", "rt", "dl"])
# https://github.com/stevenlovegrove/Pangolin/blob/v0.9.1/components/pango_core/CMakeLists.txt#L3-L11
if is_apple_os(self):
pango_core.defines.append("_OSX_")
if self.settings.os == "iOS":
pango_core.defines.append("_APPLE_IOS_")
elif self.settings.os == "Windows":
pango_core.defines.append("_WIN_")
elif self.settings.os == "Emscripten":
pango_core.defines.append("_EMSCRIPTEN_")
else:
pango_core.defines.append("_LINUX_")

_add_component("pango_display", requires=["pango_core", "pango_opengl", "pango_windowing", "pango_vars"])
_add_component("pango_geometry", requires=["pango_core", "pango_image", "tinyobjloader::tinyobjloader"])
Expand Down

0 comments on commit 0031a1d

Please sign in to comment.