Skip to content

Commit

Permalink
imgui: lunasvg is not available for all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 24, 2024
1 parent 135f62b commit 71ab988
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/imgui/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def config_options(self):
del self.options.backend_osx
del self.options.enable_metal_cpp
del self.options.enable_osx_clipboard
if Version(self.version) < "1.89.8":
del self.options.enable_freetype_lunasvg
if Version(self.version) < "1.89.6":
del self.options.backend_sdl2
del self.options.backend_sdlrenderer2
Expand Down Expand Up @@ -139,7 +141,7 @@ def configure(self):
self.options.rm_safe("backend_win32")
self.options.rm_safe("backend_wgpu")
if not self.options.enable_freetype:
del self.options.enable_freetype_lunasvg
self.options.rm_safe("enable_freetype_lunasvg")

def layout(self):
cmake_layout(self, src_folder="src")
Expand Down Expand Up @@ -272,7 +274,7 @@ def package_info(self):
self.cpp_info.components["core"].frameworks.append("ApplicationServices")
if self.options.enable_freetype:
self.cpp_info.components["core"].requires.append("freetype::freetype")
if self.options.enable_freetype_lunasvg:
if self.options.get_safe("enable_freetype_lunasvg"):
self.cpp_info.components["core"].requires.append("lunasvg::lunasvg")

def _add_binding(name, requires=None, system_libs=None, frameworks=None):
Expand Down

0 comments on commit 71ab988

Please sign in to comment.