-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from jmlich/ubports-with-mapbox
Add missing mapbox components for Ubuntu Touch
- Loading branch information
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/platform/qt/qt.cmake b/platform/qt/qt.cmake | ||
index cb11d5352..1e7411df3 100644 | ||
--- a/platform/qt/qt.cmake | ||
+++ b/platform/qt/qt.cmake | ||
@@ -226,7 +226,8 @@ configure_package_config_file( | ||
|
||
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/QMapLibreGLConfigVersion.cmake | ||
VERSION ${MBGL_QT_VERSION} | ||
- COMPATIBILITY AnyNewerVersion) | ||
+ COMPATIBILITY AnyNewerVersion | ||
+ ARCH_INDEPENDENT) | ||
|
||
install(EXPORT QMapLibreGLTargets | ||
DESTINATION ${CMAKECONFIG_INSTALL_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 71db29e2f..69ca6d4bc 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -24,6 +24,27 @@ set( | ||
"--leak-check=full --gen-suppressions=all --error-exitcode=1 --suppressions=${PROJECT_SOURCE_DIR}/scripts/valgrind.sup" | ||
) | ||
|
||
+set(CROSS_COMPILING OFF) | ||
+ | ||
+if($ENV{ARCH} STREQUAL "armhf") | ||
+ set(CROSS_COMPILING ON) | ||
+ set(CMAKE_SYSTEM_PROCESSOR arm) | ||
+elseif($ENV{ARCH} STREQUAL "arm64") | ||
+ set(CROSS_COMPILING ON) | ||
+ set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
+endif() | ||
+ | ||
+if(CROSS_COMPILING) | ||
+ set(CMAKE_SYSTEM_NAME Linux) | ||
+ | ||
+ set(CMAKE_PREFIX_PATH /usr/lib/$ENV{ARCH_TRIPLET};/usr/lib/$ENV{ARCH_TRIPLET}/cmake) | ||
+ set(CMAKE_C_COMPILER_TARGET $ENV{ARCH_TRIPLET}) | ||
+ set(CMAKE_CXX_COMPILER_TARGET $ENV{ARCH_TRIPLET}) | ||
+ | ||
+ set(ICU_INCLUDE_DIR /usr/include/$ENV{ARCH_TRIPLET}) | ||
+ find_package(ICU REQUIRED COMPONENTS uc) | ||
+endif() | ||
+ | ||
include(CTest) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters