diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-19 17:51:36 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-20 20:55:51 +0300 |
commit | c8c69f1d2a968dfc2556c3612e96ddba848ee885 (patch) | |
tree | a515b9e17ea8809b18c96c2e1808174b2ef57bbc /scripts | |
parent | 029f9f088331fa0d04a9b75a7dbdae773f749f47 (diff) | |
download | qtlocation-mapboxgl-c8c69f1d2a968dfc2556c3612e96ddba848ee885.tar.gz |
[Qt] Build the Qt port
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/main.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/main.mk b/scripts/main.mk index 4c7f0d4794..af0743d2b2 100644 --- a/scripts/main.mk +++ b/scripts/main.mk @@ -34,6 +34,20 @@ export PLATFORM_OUTPUT = ./build/$(PLATFORM_SLUG) export PLATFORM_CONFIG_INPUT = platform/$(MASON_PLATFORM)/scripts/configure.sh export PLATFORM_CONFIG_OUTPUT = $(PLATFORM_OUTPUT)/config.gypi +ifeq ($(PLATFORM),qt) + ifeq ($(shell uname -s), Darwin) + export MASON_PLATFORM = osx + export MASON_PLATFORM_VERSION = $(SUBPLATFORM) + export PLATFORM_SLUG = qt-osx-$(SUBPLATFORM) + export PLATFORM_CONFIG_INPUT = platform/qt/scripts/configure.sh + else ifeq ($(shell uname -s), Linux) + export MASON_PLATFORM = linux + export MASON_PLATFORM_VERSION = $(SUBPLATFORM) + export PLATFORM_SLUG = qt-linux-$(SUBPLATFORM) + export PLATFORM_CONFIG_INPUT = platform/qt/scripts/configure.sh + endif +endif + ifneq (,$(findstring clang,$(CXX))) CXX_HOST = "clang" else ifneq (,$(findstring g++,$(CXX))) @@ -124,6 +138,9 @@ tidy: Ninja/compdb run-glfw-app: cd $(PLATFORM_OUTPUT)/$(BUILDTYPE) && ./mapbox-glfw +run-qt-app: + cd $(PLATFORM_OUTPUT)/$(BUILDTYPE) && ./qmapboxgl + run-valgrind-glfw-app: cd $(PLATFORM_OUTPUT)/$(BUILDTYPE) && valgrind --leak-check=full --suppressions=../../../scripts/valgrind.sup ./mapbox-glfw |