summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-08 23:38:22 +0800
committerruki <[email protected]>2024-11-08 23:38:22 +0800
commitaf32cfafd86c02db28ffdbcc9fe82fa48d12a1aa (patch)
tree44ca3a8b84c3d8df46f0d1a85d1e6c95c147b121
parent345eb696e68cd1040d0120abe2ec7fb4390517ed (diff)
fix package xmake.lua
-rw-r--r--xmake/actions/package/local/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/package/local/main.lua b/xmake/actions/package/local/main.lua
index ca724140a..42133b142 100644
--- a/xmake/actions/package/local/main.lua
+++ b/xmake/actions/package/local/main.lua
@@ -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)