summaryrefslogtreecommitdiff
path: root/tests/projects/embed/gnu-rm/hello/xmake.lua
diff options
context:
space:
mode:
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")