diff options
Diffstat (limited to 'scripts/main.mk')
-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 |