From fb7f61718d9014404de3a54d91b0424a0f1856f7 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Thu, 23 Nov 2023 00:26:45 +0100 Subject: [PATCH] static lib for Windows --- xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake.lua b/xmake.lua index 68afe32..88942d2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -8,3 +8,7 @@ target("PerfectHear") add_files("src/*.cpp") add_includedirs("include") add_packages("libsdl_mixer", "imgui") + + if is_os("windows") then + add_ldflags("-static") + end