summaryrefslogtreecommitdiff
path: root/tests/projects/embed/gnu-rm/hello/xmake.lua
diff options
context:
space:
mode:
authorJianpeng Peng <[email protected]>2022-10-19 11:15:47 +0800
committerJianpeng Peng <[email protected]>2022-10-19 11:15:47 +0800
commitf6a1811657d2a2abc5ca6026bb340cb68942db0a (patch)
tree90e26f24189863a289d26ac2679a71a0f84c2501 /tests/projects/embed/gnu-rm/hello/xmake.lua
parentd9595826e8f81ec19673adcce87e44931cf75c0f (diff)
Add rule and test project for gnu-rm.
Diffstat (limited to 'tests/projects/embed/gnu-rm/hello/xmake.lua')
-rw-r--r--tests/projects/embed/gnu-rm/hello/xmake.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/projects/embed/gnu-rm/hello/xmake.lua b/tests/projects/embed/gnu-rm/hello/xmake.lua
new file mode 100644
index 000000000..f5049db07
--- /dev/null
+++ b/tests/projects/embed/gnu-rm/hello/xmake.lua
@@ -0,0 +1,16 @@
+-- Configure xmake.conf with the actual environment variables.
+set_toolchains("envs", "gnu-rm")
+
+add_rules("mode.debug", "mode.release")
+
+target("foo")
+ add_rules("gnu-rm.static")
+ add_files("src/foo/*.c")
+
+target("hello")
+ add_deps("foo")
+ add_rules("gnu-rm.binary")
+ set_kind("binary")
+ add_files("src/*.c", "src/*.s")
+ add_files("src/*.ld")
+ add_includedirs("src/lib/cmsis")