From 936d52b6e691ecff5d009dcc1f72a6b4895e601b Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 25 May 2014 14:25:08 -0400 Subject: [PATCH] main.ninja for compiling with QtCreator on Windows. Really need Shogun... --- main.ninja | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 main.ninja diff --git a/main.ninja b/main.ninja new file mode 100644 index 00000000..004164bf --- /dev/null +++ b/main.ninja @@ -0,0 +1,27 @@ +# This file has been generated by shinobi version 0.9.5 + +ninja_required_version = 1.3 +builddir = bin +objdir = obj +cxx = g++ +cxxflags = -std=c++11 -pedantic -pedantic-errors -Wextra -Wall -O2 -DNDEBUG +incflags = -I"." -I"./include" -I"." -I"/usr/include/lua5.2" -I"./lua-5.2.2/src/" -I"./Catch/include/" +linkflags = -static -L"./lib" -llua5.2 + +rule compile + command = $cxx -MMD -MF $out.d $cxxflags -c $in -o $out $incflags + deps = gcc + depfile = $out.d + description = Compiling $in + +rule link + command = $cxx $in -o $out $linkflags + description = Creating $out + +build $objdir/main.o: compile main.cpp + +build $builddir/tests: link $objdir/main.o + +build install: phony $builddir/tests + +default install