Skip to content

Commit 796a239

Browse files
authored
Android builds working with Qt 5.15. (#382)
1 parent 11d1c70 commit 796a239

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

Plugin/CppApi/ArcGISRuntimeToolkit.pri

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,28 @@ macx: PLATFORM = "macOS"
2323
unix:!macx:!android:!ios: PLATFORM = "linux"
2424
win32: PLATFORM = "windows"
2525
ios: PLATFORM = "iOS"
26-
android: {
27-
PLATFORM = "android"
28-
contains(QT_ARCH, i386) {
29-
ANDROID_ARCH = "x86"
30-
} else:contains(QT_ARCH, arm64) {
31-
ANDROID_ARCH = "arm64"
32-
} else {
33-
ANDROID_ARCH = "armv7"
34-
}
35-
}
26+
android: PLATFORM = "android"
3627

3728
INCLUDEPATH += $$PWD/include \
3829
$$PWD/include/CoordinateConversion
3930

40-
!android:!win32: PLATFORM_OUTPUT = $$PLATFORM
41-
android: PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH
4231
win32: {
4332
contains(QT_ARCH, x86_64): {
4433
PLATFORM_OUTPUT = $$PLATFORM/x64
4534
} else {
4635
PLATFORM_OUTPUT = $$PLATFORM/x86
4736
}
4837
}
38+
else: {
39+
PLATFORM_OUTPUT = $$PLATFORM
40+
}
4941

5042
# make sure the local toolkit libs come first on the link line
5143
ARCGIS_RT_SDK_LIBS = $$LIBS
52-
LIBS = -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi$${ToolkitPrefix}$${DebugSuffix} $$ARCGIS_RT_SDK_LIBS
44+
45+
TOOLKIT_SUFFIX = $${ToolkitPrefix}$${DebugSuffix}
46+
android:TOOLKIT_SUFFIX = $${TOOLKIT_SUFFIX}_$${QT_ARCH}
47+
LIBS = -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi$${TOOLKIT_SUFFIX} $$ARCGIS_RT_SDK_LIBS
5348

5449
# unset the previous toolkit defines and import paths
5550
DEFINES -= ARCGIS_TOOLKIT_IMPORT_PATH=\"$$ARCGIS_TOOLKIT_IMPORT_PATH\"

Plugin/CppApi/ArcGISRuntimeToolkit.pro

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,15 @@ CONFIG(release, debug|release) {
6262
BUILDTYPE = debug
6363
}
6464

65-
!android:!win32: PLATFORM_OUTPUT = $$PLATFORM
66-
android: PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH
6765
win32: {
6866
contains(QMAKE_TARGET.arch, x86_64): {
6967
PLATFORM_OUTPUT = $$PLATFORM/x64
7068
} else {
7169
PLATFORM_OUTPUT = $$PLATFORM/x86
7270
}
7371
}
72+
else: {
73+
PLATFORM_OUTPUT = $$PLATFORM
74+
}
7475

7576
DESTDIR = $$PWD/output/$$PLATFORM_OUTPUT
76-
OBJECTS_DIR = $$DESTDIR/$$BUILDTYPE/obj
77-
MOC_DIR = $$DESTDIR/$$BUILDTYPE/moc
78-
RCC_DIR = $$DESTDIR/$$BUILDTYPE/qrc

0 commit comments

Comments
 (0)