From 85449e097c5fb28088c7866ad7e3b10683b30268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 17 Mar 2014 12:32:27 +0100 Subject: add gtest --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bac7777dc2..296b7f5efd 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ all: llmr llmr: config.gypi src llmr.gyp @if [ ! -f out ]; then echo 'please run ./configure first'; else $(MAKE) -C out BUILDTYPE=Release V=$(V) llmr-x86; fi; +gtest: config.gypi src llmr.gyp + deps/run_gyp llmr.gyp -Goutput_dir=./out/ --depth=. --generator-output=./build/gtest -f make + make -C build/gtest gtest V=$(V) + # build OS X app with pure make app: config.gypi src macosx/llmr-app.gyp deps/run_gyp macosx/llmr-app.gyp -Goutput_dir=./out/ --depth=. --generator-output=./build/macosx-make -f make @@ -58,6 +62,13 @@ isim: config.gypi src ios/llmr-app.gyp # does not work #"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator" -SimulateApplication ios/build/Release-iphonesimulator/llmr.app/llmr +test: config.gypi src test/test.gyp + deps/run_gyp test/test.gyp -Goutput_dir=. --depth=. --generator-output=./build/test -f make + make -C build/test V=$(V) + @for FILE in build/test/Release/test_*; do \ + $${FILE}; \ + done + clean: -rm -rf out -rm -rf build @@ -71,7 +82,4 @@ distclean: -rm -rf macosx/llmr-app.xcodeproj -rm -rf ios/llmr-app.xcodeproj -test: all - echo test - .PHONY: test linux -- cgit v1.2.1