summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-21 17:15:31 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-21 17:22:26 +0200
commitbfd5ad3220e7abe928daca98605012c1a12ae377 (patch)
tree1238c17671e7c069c87208b506fa092385fab13b /Makefile
parent8219d72135c007c44b61a781c95c817a8618c478 (diff)
downloadqtlocation-mapboxgl-bfd5ad3220e7abe928daca98605012c1a12ae377.tar.gz
[gyp] Coverage only if BUILDTYPE=Debug and ENABLE_COVERAGE=1
Coverage compiler and linker flags are used only when (1) in debug build and (2) with ENABLE_COVERAGE set to 1. Besides, because OS X's libtool is unable to understand '--coverage', this linker flag is only used genrating executable targets. Also, using 'link_settings' to specify linker options and separate instructions for OSX and Linux.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5cada812d7..6e8eda4377 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ export BUILDTYPE ?= Release
export BUILD_TEST ?= 1
export BUILD_RENDER ?= 1
export BUILD_OFFLINE ?= 1
+export ENABLE_COVERAGE ?= 0
# Determine build platform
ifeq ($(shell uname -s), Darwin)