From a6cc0b88b515cef4c9f0d129efd5153d2d3c9f2d Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Wed, 20 Nov 2024 12:36:34 -0500 Subject: [PATCH] Leaner ImGui Build --- dependencies/imgui/CMakeLists.txt | 7 +++++++ dependencies/imgui/src | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dependencies/imgui/CMakeLists.txt b/dependencies/imgui/CMakeLists.txt index 00878bf2bf..5dd3adcbfb 100644 --- a/dependencies/imgui/CMakeLists.txt +++ b/dependencies/imgui/CMakeLists.txt @@ -25,6 +25,13 @@ target_link_libraries(imgui PUBLIC glfw OpenGL::GL) embed_resource(imgui src/misc/fonts/Roboto-Medium.ttf) embed_resource(imgui src/misc/fonts/Cousine-Regular.ttf) +# Configure +target_compile_definitions(imgui PUBLIC + IMGUI_DISABLE_DEMO_WINDOWS + IMGUI_DISABLE_DEBUG_TOOLS + IMGUI_DISABLE_DEFAULT_FONT +) + # Patch execute_process( COMMAND "patch" "-p1" "--forward" "--reject-file=-" diff --git a/dependencies/imgui/src b/dependencies/imgui/src index eb0ad66d88..551b6c4d66 160000 --- a/dependencies/imgui/src +++ b/dependencies/imgui/src @@ -1 +1 @@ -Subproject commit eb0ad66d88d96be3ccad31e22ef9d3126ec79ef2 +Subproject commit 551b6c4d662a3938f0cd197e79cc29922feec1ff