Skip to content

Commit

Permalink
fix shared
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Aug 3, 2023
1 parent f10b9ee commit 2b67937
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/i/imgui-file-dialog/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit 2b67937

Please sign in to comment.