summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-17 12:32:27 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-17 12:32:27 +0100
commit85449e097c5fb28088c7866ad7e3b10683b30268 (patch)
tree70409c2b3eb9fd74e718a01420ab029e87c28526 /Makefile
parent168ee4659e8499d0253587ec94ca1e548f770d87 (diff)
downloadqtlocation-mapboxgl-85449e097c5fb28088c7866ad7e3b10683b30268.tar.gz
add gtest
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
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