From 009ac6eb5ff468b560649e8080057202285b7f6f Mon Sep 17 00:00:00 2001 From: star9029 Date: Thu, 3 Aug 2023 22:22:54 +0800 Subject: [PATCH] fix shared --- packages/i/imgui-file-dialog/xmake.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/i/imgui-file-dialog/xmake.lua b/packages/i/imgui-file-dialog/xmake.lua index 2604017e3bf..9a21ca96a86 100644 --- a/packages/i/imgui-file-dialog/xmake.lua +++ b/packages/i/imgui-file-dialog/xmake.lua @@ -8,12 +8,14 @@ package("imgui-file-dialog") add_versions("v0.6.5", "3fac0f2cfc92b3f2c806e6743236467d0f691e54b1747a3955b82ef28b13e2fa") + if is_plat("mingw") then' + add_configs("shared", {description = "Build shared binaries.", default = false, type = "boolean", readonly = true}) + end + add_deps("imgui") - on_load(function (package) - if package:is_plat("windows") then - package:add("deps", "dirent") - end + on_load("windows", function (package) + package:add("deps", "dirent") end) on_install("windows", "linux", "macosx", "mingw", "android", function (package) @@ -35,9 +37,6 @@ package("imgui-file-dialog") add_rules("utils.symbols.export_all", {export_classes = true}) end ]]) - if package:config("shared") then - configs.kind = "shared" - end import("package.tools.xmake").install(package, configs) end)