From 67e0cc8b2e20ec5f31e4ac9759d24448c939ebec Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Fri, 4 Oct 2024 13:02:20 +0200 Subject: [PATCH] if ios or python: Freetype disable harfbuzz, brotli, png --- hello_imgui_cmake/hello_imgui_build_lib.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hello_imgui_cmake/hello_imgui_build_lib.cmake b/hello_imgui_cmake/hello_imgui_build_lib.cmake index 56fe09ae..5ddd9651 100644 --- a/hello_imgui_cmake/hello_imgui_build_lib.cmake +++ b/hello_imgui_cmake/hello_imgui_build_lib.cmake @@ -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