summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-15 22:35:38 +0800
committerruki <[email protected]>2023-11-15 22:35:38 +0800
commitd52b2dd2892da95ec50080aead7c0098eddad27b (patch)
tree3010c694ae1f5f4e62607325f2dd0486dab5ae01 /tests/plugins/pack/xmake.lua
parent232d49f245224019a5c69a17702a3c3ad15d467e (diff)
install and uninstall package/dll
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
-rw-r--r--tests/plugins/pack/xmake.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index 7111f13da..b5f8a4e21 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -3,14 +3,22 @@ add_rules("mode.debug", "mode.release")
includes("@builtin/xpack")
+add_requires("zlib", {configs = {shared = true}})
+
target("test")
set_kind("binary")
add_files("src/*.cpp")
+target("foo")
+ set_kind("shared")
+ add_files("src/*.cpp")
+ add_headerfiles("include/(*.h)")
+ add_packages("zlib")
+
xpack("test")
set_formats("nsis")
set_description("hello")
- add_targets("test")
+ add_targets("test", "foo")
set_basename("test-$(plat)-$(arch)-v$(version)")
add_installfiles("src/(assets/*.png)", {prefixdir = "images"})
set_iconfile("src/assets/xmake.ico")