From ce9e92777d2408ee4e161a4c8f3f8dd32f99b90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Fri, 28 Jun 2013 07:38:21 +0300 Subject: Android QML fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1de27d553fdfc83267a801108a3b3457f2e85224 Change-Id: I1de27d553fdfc83267a801108a3b3457f2e85224 Reviewed-by: Tomi Korpipää --- examples/examples.pri | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/examples/examples.pri b/examples/examples.pri index 906f7d27..48d2f29a 100644 --- a/examples/examples.pri +++ b/examples/examples.pri @@ -50,6 +50,7 @@ contains(TARGET, qml.*) { src_lib = lib$${lib_name}.dylib } } else { + # linux, android src_lib = lib$${lib_name}.so } } @@ -58,14 +59,12 @@ contains(TARGET, qml.*) { copy_lib.commands = $(COPY_FILE) \"$$replace(copy_lib.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_lib.target, /, $$QMAKE_DIR_SEP)\" QMAKE_EXTRA_TARGETS += copy_lib PRE_TARGETDEPS += $$copy_lib.target -} -#android { -# contains(TARGET, qml.*) { -# charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir -# charts_qmldir.path = /assets/imports/QtCommercial/Chart -# charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so -# charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH -# INSTALLS += charts_qmldir charts_qmlplugin -# } -#} + android { + android_qmldir.files = $$copy_qmldir_examples.target + android_qmldir.path = /assets/imports/$$make_qmldir_target + android_qmlplugin.files = $$copy_lib.target + android_qmlplugin.path = $$target.path + INSTALLS += android_qmldir android_qmlplugin + } +} -- cgit v1.2.3