diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-09-20 06:37:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:28:02 +0200 |
commit | b8fd71aa2af110372841a1724471b8bffa4ab254 (patch) | |
tree | e596988b47c58003222b526e72294abb756c2d79 /test.build | |
parent | 053c4ad0c3807105a53d9ba65e47483a90bfde52 (diff) |
Initial commit, works to create ninja file
Diffstat (limited to 'test.build')
-rw-r--r-- | test.build | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test.build b/test.build new file mode 100644 index 0000000..f34a1e7 --- /dev/null +++ b/test.build @@ -0,0 +1,20 @@ + + +rule c_COMPILER + command = 'cc' '$ARGS' '-c' '$in' '-o' '$out' + +rule cpp_COMPILER + command = 'c++' '$ARGS' '-c' '$in' '-o' '$out' + depfile = $out.d + +rule BUILD_EXEC + command = 'c++' '$ARGS' '-o' '$out' '$in' '$LINK_ARGS' '$aliasing' + depfile = $out.d + +build test@exe/main.cpp.o: cpp_COMPILER ../../main.cpp + ARGS = $globalIncDir -std=c++14 -pedantic -fpie -MMD -MP '-Itest@exe' '-I..' -Wall -Wextra -Werror=return-type -fdiagnostics-show-option '-fdiagnostics-color=always' '-pipe' '-D_FILE_OFFSET_BITS=64' '-Winvalid-pch' -fstack-protector '-Og' -fexceptions -Wnon-virtual-dtor -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables + +build test: BUILD_EXEC test@exe/main.cpp.o + ARGS = $globalIncDir -std=c++14 -pedantic -fpie -MMD -MP '-Itest@exe' '-I..' -Wall -Wextra -Werror=return-type -fdiagnostics-show-option '-fdiagnostics-color=always' '-pipe' '-D_FILE_OFFSET_BITS=64' '-Winvalid-pch' -fstack-protector '-Og' -fexceptions -Wnon-virtual-dtor -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables + + |