From 052bb5f3863ec244fc896e39f15bc3612f6556d3 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 13 Jun 2021 16:44:18 +0800 Subject: [PATCH] improve libsdl --- packages/l/libsdl/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/l/libsdl/xmake.lua b/packages/l/libsdl/xmake.lua index a7e5ade8f..bc4644543 100644 --- a/packages/l/libsdl/xmake.lua +++ b/packages/l/libsdl/xmake.lua @@ -30,6 +30,10 @@ package("libsdl") add_configs("with_x", {description = "Enables X support (requires it on the system)", default = true, type = "boolean"}) add_configs("use_sdlmain", {description = "Use SDL_main entry point", default = true, type = "boolean"}) + if is_plat("windows", "mingw") then + add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true}) + add_configs("vs_runtime", {description = "Set vs compiler runtime.", default = "MD", readonly = true}) + end on_load(function (package) if package:config("use_sdlmain") then