summaryrefslogtreecommitdiff
path: root/tests/projects/package/components/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-19 22:36:19 +0800
committerruki <[email protected]>2022-10-19 22:36:19 +0800
commitf55de1eb50c29fc58bbaef1bc387035a8deabe6e (patch)
treebdc81e4eca0e93c5c5814c42d8468814106acf3f /tests/projects/package/components/xmake.lua
parent0d3dc74e78b1d93de70c1a5e053afc9099e89029 (diff)
support default components
Diffstat (limited to 'tests/projects/package/components/xmake.lua')
-rw-r--r--tests/projects/package/components/xmake.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/projects/package/components/xmake.lua b/tests/projects/package/components/xmake.lua
index a8d955fb8..a6b7dffff 100644
--- a/tests/projects/package/components/xmake.lua
+++ b/tests/projects/package/components/xmake.lua
@@ -5,12 +5,12 @@ add_requires("sfml")
target("graphics")
set_kind("static")
add_files("src/graphics.cpp")
- add_packages("sfml", {components = {"graphics", "window", "system"}, public = true})
+ add_packages("sfml", {components = {"graphics", "window"}, public = true})
target("network")
set_kind("static")
add_files("src/network.cpp")
- add_packages("sfml", {components = {"network", "system"}, public = true})
+ add_packages("sfml", {components = {"network"}, public = true})
target("test")
set_kind("binary")
@@ -131,9 +131,9 @@ package("sfml")
end
end
if package:is_plat("windows", "mingw") and package:config("main") then
- package:add("components", "main")
+ package:add("components", "main", {default = true})
end
- package:add("components", "system")
+ package:add("components", "system", {default = true})
end)
on_install("windows", "linux", function (package)