From 194a5708f3a42c6254cf99d8e03b5c8c60224feb Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Thu, 20 Sep 2018 06:37:59 +0200 Subject: Initial commit, works to create ninja file --- test.build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test.build (limited to 'test.build') 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 + + -- cgit v1.2.3