Skip to content

Commit

Permalink
ogre: make xorg components more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 12, 2024
1 parent ac8d254 commit 15ec300
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions recipes/ogre/1.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,21 +605,14 @@ def _add_plugin_component(comp, *, requires=None, extra_includedirs=None):
)
if self.settings.os in ["Linux", "FreeBSD"]:
if self.options.use_wayland:
self.cpp_info.components["OgreMain"].requires.extend([
"wayland::wayland-client",
"wayland::wayland-egl",
])
self.cpp_info.components["OgreMain"].requires.extend(["wayland::wayland-client", "wayland::wayland-egl"])
else:
self.cpp_info.components["OgreMain"].requires.extend([
"xorg::x11",
"xorg::xaw7",
"xorg::xext",
"xorg::xrandr",
"xorg::xt",
])
self.cpp_info.components["OgreMain"].requires.extend(["xorg::x11", "xorg::xrandr"])

if self.options.get_safe("build_component_bites"):
_add_core_component("Bites", requires=["Overlay", "sdl::sdl"])
if self.settings.os in ["Linux", "FreeBSD"] and not self.options.use_wayland:
self.cpp_info.components["Bites"].requires.extend(["xorg::xaw7", "xorg::xt"])
if self.options.get_safe("build_component_bullet"):
_add_core_component("Bullet", requires=["bullet3::bullet3"])
if self.options.build_component_meshlodgenerator:
Expand Down

0 comments on commit 15ec300

Please sign in to comment.