Skip to content

Commit

Permalink
if ios or python: Freetype disable harfbuzz, brotli, png
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Oct 4, 2024
1 parent 6f96155 commit 67e0cc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hello_imgui_cmake/hello_imgui_build_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,11 @@ function(_him_add_freetype_to_imgui)
endif()

include(FetchContent)
if(IOS)
if(IOS OR (IMGUI_BUNDLE_BUILD_PYTHON AND NOT DEFINED CONAN_BUILD))
message(STATUS "Building freetype without harfbuzz, brotli, png")
set(FT_DISABLE_HARFBUZZ ON CACHE BOOL "" FORCE)
set(FT_DISABLE_BROTLI ON CACHE BOOL "" FORCE)
set(FT_DISABLE_PNG ON CACHE BOOL "" FORCE)
endif()
FetchContent_Declare(
freetype
Expand Down

0 comments on commit 67e0cc8

Please sign in to comment.