summaryrefslogtreecommitdiff
path: root/tests/projects/windows/test_windows_links/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/windows/test_windows_links/xmake.lua')
-rw-r--r--tests/projects/windows/test_windows_links/xmake.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/projects/windows/test_windows_links/xmake.lua b/tests/projects/windows/test_windows_links/xmake.lua
new file mode 100644
index 000000000..2f01a3c88
--- /dev/null
+++ b/tests/projects/windows/test_windows_links/xmake.lua
@@ -0,0 +1,19 @@
+add_rules("mode.debug", "mode.release")
+
+set_policy("run.gui_error_dialogs", false)
+
+target("foo")
+ set_kind("shared")
+ add_files("src/foo.c")
+
+target("test_mingw_dll")
+ set_kind("binary")
+ add_files("src/main.c")
+ add_deps("foo")
+ add_syslinks("psapi")
+ after_build(function (target)
+ local foo = target:dep("foo")
+ if foo then
+ os.tryrm(foo:targetfile())
+ end
+ end)