Skip to content

Commit

Permalink
ogre: DirectX 9 is not available on C3I
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 12, 2024
1 parent 98dcaa0 commit ac8d254
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion recipes/ogre/1.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class OgreConanFile(ConanFile):
"shared": False,
"fPIC": True,
"resourcemanager_strict": "STRICT",
"build_rendersystem_d3d9": True,
"build_rendersystem_d3d9": False,
"build_rendersystem_d3d11": True,
"build_rendersystem_gl3plus": True,
"build_rendersystem_gl": True,
Expand Down Expand Up @@ -475,6 +475,14 @@ def _patch_sources(self):
"if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)", "if(0)")
replace_in_file(self, os.path.join(self.source_folder, "Components", "Overlay", "CMakeLists.txt"),
"list(REMOVE_ITEM SOURCE_FILES", "# list(REMOVE_ITEM SOURCE_FILES")
# Require DirectX if enabled
if self.options.get_safe("build_rendersystem_d3d9"):
replace_in_file(self, os.path.join(self.source_folder, "CMake", "Dependencies.cmake"),
"find_package(DirectX)", "find_package(DirectX REQUIRED)")
if self.options.get_safe("build_rendersystem_d3d11"):
replace_in_file(self, os.path.join(self.source_folder, "CMake", "Dependencies.cmake"),
"find_package(DirectX11)", "find_package(DirectX11 REQUIRED)")


def build(self):
self._patch_sources()
Expand Down

0 comments on commit ac8d254

Please sign in to comment.