summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-20 22:55:52 +0800
committerruki <[email protected]>2022-10-20 22:55:52 +0800
commit347bee6e7498283dd401292958ca03c5a517688d (patch)
tree0786f413ba103226949bab0aacc80563350a9e8a
parent3770f99b2e41e2f7ec8ab5afc91e065c3090bb8d (diff)
improve test
-rw-r--r--tests/projects/package/components/xmake.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/projects/package/components/xmake.lua b/tests/projects/package/components/xmake.lua
index 6cb7aebd8..6185f5178 100644
--- a/tests/projects/package/components/xmake.lua
+++ b/tests/projects/package/components/xmake.lua
@@ -62,6 +62,9 @@ package("sfml")
on_component("graphics", function (package, component)
local e = package:config("shared") and "" or "-s"
+ if package:debug() then
+ e = e .. "-d"
+ end
component:add("links", "sfml-graphics" .. e)
if package:is_plat("windows", "mingw") and not package:config("shared") then
component:add("links", "freetype")
@@ -73,6 +76,9 @@ package("sfml")
on_component("window", function (package, component)
local e = package:config("shared") and "" or "-s"
+ if package:debug() then
+ e = e .. "-d"
+ end
component:add("links", "sfml-window" .. e)
if package:is_plat("windows", "mingw") and not package:config("shared") then
component:add("syslinks", "opengl32", "gdi32", "user32", "advapi32")
@@ -83,6 +89,9 @@ package("sfml")
on_component("audio", function (package, component)
local e = package:config("shared") and "" or "-s"
+ if package:debug() then
+ e = e .. "-d"
+ end
component:add("links", "sfml-audio" .. e)
if package:is_plat("windows", "mingw") and not package:config("shared") then
component:add("links", "openal32", "flac", "vorbisenc", "vorbisfile", "vorbis", "ogg")
@@ -93,6 +102,9 @@ package("sfml")
on_component("network", function (package, component)
local e = package:config("shared") and "" or "-s"
+ if package:debug() then
+ e = e .. "-d"
+ end
component:add("links", "sfml-network" .. e)
if package:is_plat("windows", "mingw") and not package:config("shared") then
component:add("syslinks", "ws2_32")
@@ -104,6 +116,9 @@ package("sfml")
on_component("system", function (package, component)
local e = package:config("shared") and "" or "-s"
+ if package:debug() then
+ e = e .. "-d"
+ end
component:add("links", "sfml-system" .. e)
if package:is_plat("windows", "mingw") then
component:add("syslinks", "winmm")