summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/shared/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-28 21:55:13 +0800
committerruki <[email protected]>2026-02-28 21:55:13 +0800
commit5280c9480cb0d7d3ab55d516e296152ec273e14a (patch)
treeaf041546121010fdad5639c231ad2b2a4900aa12 /xmake/templates/c++/shared/xmake.lua
parent71e10b70334401d46c47f574c8f46fcd20ccf818 (diff)
rewrite templates
Diffstat (limited to 'xmake/templates/c++/shared/xmake.lua')
-rw-r--r--xmake/templates/c++/shared/xmake.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/templates/c++/shared/xmake.lua b/xmake/templates/c++/shared/xmake.lua
new file mode 100644
index 000000000..43510f03e
--- /dev/null
+++ b/xmake/templates/c++/shared/xmake.lua
@@ -0,0 +1,12 @@
+add_rules("mode.debug", "mode.release")
+
+target("foo")
+ set_kind("shared")
+ add_files("src/foo.cpp")
+
+target("${TARGETNAME}")
+ set_kind("binary")
+ add_deps("foo")
+ add_files("src/main.cpp")
+
+${FAQ}