diff options
author | Jukka Passi <jukka.passi@qt.io> | 2021-04-26 08:47:24 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-05 08:13:41 +0000 |
commit | c2ddbdab77f7c4e6c7d1b17a2c2d7ba116b217fc (patch) | |
tree | d54f1ef7e87ec79c184c5b9ef315332e731ec89c | |
parent | ab9c429c422e20bf7dba74b5f42b0f10ca9379f7 (diff) | |
download | qtsensors-c2ddbdab77f7c4e6c7d1b17a2c2d7ba116b217fc.tar.gz |
Android: Fix build error issue in examples
Added android branch to qtsensors example to get correct library
architecture for the build
Fixes: QTBUG-56322
Change-Id: I6d15a423efdf232d7f187b39cd81606bb64f9a00
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
(cherry picked from commit 0c6e97b6383a1e36cde74a6793f32a47ee76d059)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/sensors/grue/lib/lib.pri | 3 | ||||
-rw-r--r-- | examples/sensors/grue/lib/lib.pro | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/sensors/grue/lib/lib.pri b/examples/sensors/grue/lib/lib.pri index 0e3da25..675914b 100644 --- a/examples/sensors/grue/lib/lib.pri +++ b/examples/sensors/grue/lib/lib.pri @@ -3,4 +3,5 @@ INCLUDEPATH += $$PWD macos: LIBS += -L$$OUT_PWD/../grue_app.app/Contents/Frameworks else: LIBS += -L$$OUT_PWD/.. -LIBS += -lgruesensor +android: LIBS += -lgruesensor_$${QT_ARCH} +else: LIBS += -lgruesensor diff --git a/examples/sensors/grue/lib/lib.pro b/examples/sensors/grue/lib/lib.pro index cc10e5c..197d91c 100644 --- a/examples/sensors/grue/lib/lib.pro +++ b/examples/sensors/grue/lib/lib.pro @@ -1,5 +1,6 @@ TEMPLATE = lib TARGET = gruesensor +android: TARGET = gruesensor_$${QT_ARCH} macos: DESTDIR = ../grue_app.app/Contents/Frameworks else: DESTDIR = $$OUT_PWD/.. |