summaryrefslogtreecommitdiff
path: root/xmake/includes
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-24 22:34:15 +0800
committerruki <[email protected]>2023-11-24 22:34:15 +0800
commitafbbacc9085b29e39cc13e00d5673202a70f7645 (patch)
tree6c5bbad30be4b526500989de84c617f0a0af1f40 /xmake/includes
parent9217b528138fe4384403c0b573e8617bdcc18358 (diff)
add sourcefiles for xpack
Diffstat (limited to 'xmake/includes')
-rw-r--r--xmake/includes/xpack/xmake.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/includes/xpack/xmake.lua b/xmake/includes/xpack/xmake.lua
index 345431ffc..8572b2a87 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -36,11 +36,13 @@ local apis = {
"xpack.set_title",
-- set package description
"xpack.set_description",
+ -- set input kind, e.g. binary, source
+ "xpack.set_inputkind",
-- set package copyright
"xpack.set_copyright",
-- set company name
"xpack.set_company",
- -- set package formats, e.g. nsis, deb, rpm, targz, zip, runself, ...
+ -- set package formats, e.g. nsis, deb, rpm, targz, zip, srctargz, srczip, runself, ...
-- we can also add custom formats
"xpack.set_formats",
-- set the base name of the output file
@@ -75,8 +77,14 @@ local apis = {
"xpack.set_iconfile",
-- set package license file, we will also get them from target
"xpack.set_licensefile",
+ -- add source files
+ "xpack.add_sourcefiles",
-- add install files, we will also get them from target
- "xpack.add_installfiles"
+ "xpack.add_installfiles",
+ -- add source files for component
+ "xpack_component.add_sourcefiles",
+ -- add install files for component
+ "xpack_component.add_installfiles"
},
script = {
-- add custom load script