summaryrefslogtreecommitdiffstats
path: root/examples/examples.pri
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 09:55:54 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-24 10:55:33 +0200
commit289584f6e4434577abea050855fb59ef84417070 (patch)
treeb7a22856657ff0bcdbedffcace799434eb8b355d /examples/examples.pri
parent8802cf50ef296ce8cc56a2ba97fa237237f62d15 (diff)
iOS fix for qml examples
Change-Id: Ia8e70005c467746bccc9cc6023b2cb485d5a8e7e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/examples.pri')
-rw-r--r--examples/examples.pri37
1 files changed, 23 insertions, 14 deletions
diff --git a/examples/examples.pri b/examples/examples.pri
index 299c7c2a..583c5279 100644
--- a/examples/examples.pri
+++ b/examples/examples.pri
@@ -46,7 +46,11 @@ contains(TARGET, qml.*) {
static:contains(QT_CONFIG, static) {
# Make import scan find our copied qmldir & statically built qml lib
- LIB_EXTENSION = lib
+ !win32 {
+ LIB_EXTENSION = a
+ } else {
+ LIB_EXTENSION = lib
+ }
QMLPATHS += $$DESTDIR
# We need to copy the qmldir & lib already at qmake run stage as import scan is done then
exists($$copy_qmldir.depends): system($$QMAKE_COPY $$copy_qmldir_formatted)
@@ -54,7 +58,7 @@ contains(TARGET, qml.*) {
win32 {
LIB_EXTENSION = dll
} else {
- mac {
+ mac|ios {
LIB_EXTENSION = dylib
} else {
LIB_EXTENSION = so
@@ -64,16 +68,16 @@ contains(TARGET, qml.*) {
win32 {
CONFIG(debug, release|debug) {
- src_dir = debug
+ src_dir = /debug
src_lib = $${lib_name}d.$$LIB_EXTENSION
}
CONFIG(release, release|debug){
- src_dir = release
+ src_dir = /release
src_lib = $${lib_name}.$$LIB_EXTENSION
}
} else {
- src_dir = .
- mac {
+ src_dir =
+ mac|ios {
CONFIG(debug, release|debug) {
src_lib = lib$${lib_name}_debug.$$LIB_EXTENSION
}
@@ -86,7 +90,7 @@ contains(TARGET, qml.*) {
}
}
copy_lib.target = $$make_qmldir_path/$$src_lib
- copy_lib.depends = $$OUT_PWD/../../src/$$lib_name/$$src_dir/$$src_lib
+ copy_lib.depends = $$OUT_PWD/../../src/$$lib_name$$src_dir/$$src_lib
copy_lib_formatted = \"$$replace(copy_lib.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_lib.target, /, $$QMAKE_DIR_SEP)\"
copy_lib.commands = $(COPY_FILE) $$copy_lib_formatted
QMAKE_EXTRA_TARGETS += copy_lib
@@ -97,12 +101,17 @@ contains(TARGET, qml.*) {
android_qmldir.files = $$copy_qmldir.target
android_qmldir.path = /assets/qml/$$uri_replaced
INSTALLS += android_qmldir
- # No need to do custom install for qml plugin lib when it is statically built into app
- !static|!contains(QT_CONFIG, static) {
- system($$QMAKE_COPY $$copy_lib_formatted)
- android_qmlplugin.files = $$copy_lib.target
- android_qmlplugin.path = $$target.path
- INSTALLS += android_qmlplugin
- }
+ }
+ ios {
+ system($$QMAKE_COPY $$copy_qmldir_formatted)
+ ios_qmldir.files = $$copy_qmldir.target
+ ios_qmldir.path = /TODO/$$uri_replaced
+ INSTALLS += ios_qmldir
+ }
+ android|ios {
+ system($$QMAKE_COPY $$copy_lib_formatted)
+ android_qmlplugin.files = $$copy_lib.target
+ android_qmlplugin.path = $$target.path
+ INSTALLS += android_qmlplugin
}
}