summaryrefslogtreecommitdiff
path: root/xmake/actions/package/remote/main.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-07-22 18:25:16 +0200
committerArthur LAURENT <[email protected]>2024-07-22 18:25:16 +0200
commitaf19722ebd25a7c96b3e3b042e4e48cb690b5e63 (patch)
tree173db741391f4934df06b6c0449e04e63105261b /xmake/actions/package/remote/main.lua
parentbbe7745ad8ccde3f39f1c1e468fd2d96ca7cb3f5 (diff)
improve moduleonly support
Diffstat (limited to 'xmake/actions/package/remote/main.lua')
-rw-r--r--xmake/actions/package/remote/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/actions/package/remote/main.lua b/xmake/actions/package/remote/main.lua
index 028c1f966..f73126618 100644
--- a/xmake/actions/package/remote/main.lua
+++ b/xmake/actions/package/remote/main.lua
@@ -54,6 +54,8 @@ function _package_remote(target)
file:print(" set_kind(\"binary\")")
elseif target:is_headeronly() then
file:print(" set_kind(\"library\", {headeronly = true})")
+ elseif target:is_moduleonly() then
+ file:print(" set_kind(\"library\", {moduleonly = true})")
end
local homepage = option.get("homepage")
if homepage then
@@ -122,6 +124,7 @@ function _package_target(target)
, static = _package_remote
, shared = _package_remote
, headeronly = _package_remote
+ , moduleonly = _package_remote
}
local kind = target:kind()
local script = scripts[kind]