[Qt] Build the Qt port

This commit is contained in:
Thiago Marcos P. Santos
2016-04-19 17:51:36 +03:00
parent 029f9f0883
commit c8c69f1d2a
7 changed files with 295 additions and 0 deletions

View File

@@ -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