summaryrefslogtreecommitdiff
path: root/tests/projects/other/autogen/autogen_code/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-25 00:54:13 +0800
committerruki <[email protected]>2024-07-25 00:54:13 +0800
commitc7c412f6458f5aceeb02e9bfc292dc7aac0852d3 (patch)
tree90fc1076e7dd5a2971d7033bee28825a80e59477 /tests/projects/other/autogen/autogen_code/xmake.lua
parent039cd576af844dc146b7517160648765b90b81b1 (diff)
move autogen tests
Diffstat (limited to 'tests/projects/other/autogen/autogen_code/xmake.lua')
-rw-r--r--tests/projects/other/autogen/autogen_code/xmake.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/projects/other/autogen/autogen_code/xmake.lua b/tests/projects/other/autogen/autogen_code/xmake.lua
new file mode 100644
index 000000000..9bfe25d9f
--- /dev/null
+++ b/tests/projects/other/autogen/autogen_code/xmake.lua
@@ -0,0 +1,17 @@
+add_rules("mode.debug", "mode.release")
+
+target("test")
+ set_kind("binary")
+ add_files("$(buildir)/autogen.cpp", {always_added = true})
+ before_build(function (target)
+ io.writefile("$(buildir)/autogen.cpp", [[
+#include <iostream>
+using namespace std;
+int main(int argc, char** argv) {
+ cout << "hello world!" << endl;
+ return 0;
+}
+ ]])
+ end)
+
+