diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-11-30 18:47:30 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-12-03 11:13:43 +0100 |
commit | 678a5ca91e7e763efc5140102ea9d537b05308e4 (patch) | |
tree | e9ec8a0501a54c29dd48db47a502210d93fa945e /Makefile | |
parent | e5f136a16a9482d6ae4df65166a353e8ecd2f03f (diff) | |
download | qtlocation-mapboxgl-678a5ca91e7e763efc5140102ea9d537b05308e4.tar.gz |
[build] add ninja + compilation database support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -22,9 +22,10 @@ default: ; @printf "You must specify a valid target\n" #### OS X targets ############################################################## ifeq ($(BUILD),osx) -.PHONY: osx xosx run-osx run-xosx +.PHONY: osx xosx nosx run-osx run-xosx osx: ; $(RUN) HOST=osx HOST_VERSION=x86_64 Makefile/osxapp xosx: ; $(RUN) HOST=osx HOST_VERSION=x86_64 Xcode/osxapp +nosx: ; $(RUN) HOST=osx HOST_VERSION=x86_64 Ninja/osxapp run-osx: osx ; @"build/osx-x86_64/$(BUILDTYPE)/Mapbox GL.app/Contents/MacOS/Mapbox GL" run-xosx: xosx ; @"gyp/build/$(BUILDTYPE)/Mapbox GL.app/Contents/MacOS/Mapbox GL" @@ -61,10 +62,14 @@ endif .PHONY: linux run-linux run-valgrind-linux linux: ; $(RUN) Makefile/linuxapp +nlinux: ; $(RUN) Ninja/linuxapp run-linux: linux ; (cd build/linux-x86_64/$(BUILDTYPE) && ./mapbox-gl) run-valgrind-linux: linux (cd build/linux-x86_64/$(BUILDTYPE) && valgrind --leak-check=full --suppressions=../../../scripts/valgrind.sup ./mapbox-gl) +# Generates a compilation database with ninja for use in clang tooling +compdb: ; $(RUN) Ninja/compdb + .PHONY: android android-lib # Builds a particular android architecture. android-lib-%: ; $(RUN) HOST=android HOST_VERSION=$* Makefile/androidapp |