diff options
author | Sudarsana Babu Nagineni <sudarsana.babu@mapbox.com> | 2018-08-03 10:44:57 +0300 |
---|---|---|
committer | Sudarsana Babu Nagineni <sudarsana.babu@mapbox.com> | 2018-08-07 15:50:14 +0300 |
commit | dfb93250570aec583f5aa8dcc1f23d3ba0a76f12 (patch) | |
tree | 18c5b1ca6207f080e07690c1a5801a9d5302d945 /Makefile | |
parent | a6bd60fd57f66e7c6e8e5e47f43ca7167a6a7bae (diff) | |
download | qtlocation-mapboxgl-dfb93250570aec583f5aa8dcc1f23d3ba0a76f12.tar.gz |
[Qt] Add CMake toolchain for QNX platform
This adds CMake toolchain for QNX platform. By using this
toolchain, we can compile Mapbox GL Plugin for Qt on QNX
platform.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -439,6 +439,35 @@ qtproj: $(MACOS_QT_PROJ_PATH) endif +ifdef QNX_HOST +export WITH_QT_DECODERS ?= ON +export QCC_COMPILER_TARGET ?= gcc_ntox86_64 +export QCC_NTOARCH ?= x86_64 + +export QNX_OUTPUT_PATH = build/qt-qnx-$(QCC_NTOARCH)/$(BUILDTYPE) +QNX_QT_BUILD = $(QNX_OUTPUT_PATH)/build.ninja +$(QNX_QT_BUILD): $(BUILD_DEPS) + @scripts/check-qt.sh + mkdir -p $(QNX_OUTPUT_PATH) + (cd $(QNX_OUTPUT_PATH) && cmake -G Ninja ../../.. \ + -DCMAKE_BUILD_TYPE=$(BUILDTYPE) \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DQCC_COMPILER_TARGET=${QCC_COMPILER_TARGET} \ + -DQCC_NTOARCH=${QCC_NTOARCH} \ + -DCMAKE_TOOLCHAIN_FILE=platform/qt/qnx.cmake \ + -DMBGL_PLATFORM=qt \ + -DWITH_QT_DECODERS=${WITH_QT_DECODERS} \ + -DWITH_QT_I18N=${WITH_QT_I18N} \ + -DWITH_QT_4=${WITH_QT_4} \ + -DWITH_CXX11ABI=${WITH_CXX11ABI} \ + -DWITH_COVERAGE=${WITH_COVERAGE}) + +.PHONY: qnx-qt-lib +qnx-qt-lib: $(QNX_QT_BUILD) + $(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(QNX_OUTPUT_PATH) qmapboxgl + +endif + .PHONY: qt-lib qt-lib: $(QT_BUILD) $(NINJA) $(NINJA_ARGS) -j$(JOBS) -C $(QT_OUTPUT_PATH) qmapboxgl |