From af32cfafd86c02db28ffdbcc9fe82fa48d12a1aa Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 8 Nov 2024 23:38:22 +0800 Subject: fix package xmake.lua --- xmake/actions/package/local/main.lua | 4 ++-- 1 file 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) -- cgit v1.3.1