Skip to content

Commit

Permalink
fix package xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 8, 2024
1 parent 345eb69 commit af32cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/actions/package/local/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ function _do_package_target(target)
end

if target:is_library() and not target:is_headeronly() and not target:is_moduleonly() then
file:print([[ add_configs("shared", {description = "Build shared library.", default = %s, type = "boolean", readonly = true}]], target:is_shared() and "true" or "false")
file:print([[ add_configs("shared", {description = "Build shared library.", default = %s, type = "boolean", readonly = true})]], target:is_shared() and "true" or "false")
file:print("")
end
file:print([[
on_load(function (package)
package:set("installdir", path.join(os.scriptdir(), package:plat(), package:arch(), package:mode()))
end)
]])
]])
if target:is_binary() then
file:print([[
on_fetch(function (package)
Expand Down

0 comments on commit af32cfa

Please sign in to comment.