blob: 9e6185ebe79ac50e40f94112ad0a08e96ed4ed34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
add_rules("mode.debug", "mode.release")
target("test")
set_kind("binary")
add_files("$(builddir)/autogen.cpp", {always_added = true})
before_build(function (target)
io.writefile("$(builddir)/autogen.cpp", [[
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
cout << "hello world!" << endl;
return 0;
}
]])
end)
|