summaryrefslogtreecommitdiff
path: root/tests/projects/mdk/hello/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-26 22:14:14 +0800
committerGitHub <[email protected]>2021-10-26 22:14:14 +0800
commit1115732be0fb8f1eb24b37d39b22dc187ed9062f (patch)
treef6c06f01cac654338f0d6110e6c3665b23adcb72 /tests/projects/mdk/hello/xmake.lua
parentdf89676a5a905ced4cae2be987742c1d4d91c563 (diff)
parent63c46927a81593033193b12bbf3a72db5c9726dd (diff)
Merge pull request #1773 from xmake-io/keil
Add armcc/armclang support for Keil/MDK
Diffstat (limited to 'tests/projects/mdk/hello/xmake.lua')
-rw-r--r--tests/projects/mdk/hello/xmake.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/projects/mdk/hello/xmake.lua b/tests/projects/mdk/hello/xmake.lua
new file mode 100644
index 000000000..97d640297
--- /dev/null
+++ b/tests/projects/mdk/hello/xmake.lua
@@ -0,0 +1,12 @@
+add_rules("mode.debug", "mode.release")
+
+target("foo")
+ add_rules("mdk.static")
+ add_files("src/foo/*.c")
+
+target("hello")
+ add_deps("foo")
+ add_rules("mdk.console")
+ add_files("src/*.c", "src/*.s")
+ add_defines("__EVAL", "__MICROLIB")
+ add_includedirs("src/lib/cmsis")