diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-03-17 12:32:27 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-03-17 12:32:27 +0100 |
commit | 85449e097c5fb28088c7866ad7e3b10683b30268 (patch) | |
tree | 70409c2b3eb9fd74e718a01420ab029e87c28526 /Makefile | |
parent | 168ee4659e8499d0253587ec94ca1e548f770d87 (diff) | |
download | qtlocation-mapboxgl-85449e097c5fb28088c7866ad7e3b10683b30268.tar.gz |
add gtest
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |