summaryrefslogtreecommitdiffstats
path: root/tools/viewer/viewer.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer/viewer.pro')
-rw-r--r--tools/viewer/viewer.pro13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/viewer/viewer.pro b/tools/viewer/viewer.pro
index fc750b7..64f58ed 100644
--- a/tools/viewer/viewer.pro
+++ b/tools/viewer/viewer.pro
@@ -46,9 +46,11 @@ HEADERS += \
$$PWD/../../src/api/studio3d/q3dsdatainput.h
}
+!android {
LIBS += \
-lqt3dsopengl$$qtPlatformTargetSuffix() \
-lqt3dsqmlstreamer$$qtPlatformTargetSuffix()
+}
macos:QMAKE_RPATHDIR += @executable_path/../../../../lib
@@ -73,3 +75,14 @@ contains(ANDROID_TARGET_ARCH,arm64-v8a) {
ANDROID_PACKAGE_SOURCE_DIR = \
$$PWD/android
}
+
+android {
+ # qt prl files contain hard coded paths to android ndk so don't link against them
+ # If libraries are missing because of this they need to be added separately
+ CONFIG -= link_prl
+ LIBS += \
+ $$OUT_PWD/../../lib/libqt3dsopengl$$qtPlatformTargetSuffix().so \
+ $$OUT_PWD/../../lib/libqt3dsqmlstreamer$$qtPlatformTargetSuffix().so
+
+ QT += quick
+}