summaryrefslogtreecommitdiff
path: root/xmake/actions/package/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-29 21:19:59 +0800
committerruki <[email protected]>2016-05-29 21:19:59 +0800
commit42bd7e6e3fea157cb946387a01cbb4b39ecbe559 (patch)
tree77d4c827c05d49bc4129e08f7e1caaadde428ab7 /xmake/actions/package/xmake.lua
parenta686ee37d66f509ba01dbe10c2999c32e96c59db (diff)
impl package
Diffstat (limited to 'xmake/actions/package/xmake.lua')
-rwxr-xr-xxmake/actions/package/xmake.lua27
1 files changed, 4 insertions, 23 deletions
diff --git a/xmake/actions/package/xmake.lua b/xmake/actions/package/xmake.lua
index 76c60c728..9ebf7f6c4 100755
--- a/xmake/actions/package/xmake.lua
+++ b/xmake/actions/package/xmake.lua
@@ -26,6 +26,9 @@ task("package")
-- set category
set_category("action")
+ -- on run
+ on_run("main")
+
-- set menu
set_menu({
-- usage
@@ -40,29 +43,7 @@ task("package")
-- options
, options =
{
- {'a', "archs", "kv", nil, "Package multiple given architectures."
- , " .e.g --archs=\"armv7, arm64\" or -a i386"
- , ""
- -- show the description of all architectures
- , function ()
-
- -- import platform
- import("core.platform.platform")
-
- -- make description
- local description = {}
- for i, plat in ipairs(platform.plats()) do
- description[i] = " - " .. plat .. ":"
- for _, arch in ipairs(platform.archs(plat)) do
- description[i] = description[i] .. " " .. arch
- end
- end
-
- -- get it
- return description
- end }
-
- , {'o', "outputdir", "kv", nil, "Set the output directory." }
+ {'o', "outputdir", "kv", nil, "Set the output directory." }
, {}
, {nil, "target", "v", "all", "Package a given target" }