don't overwrite pre-existing INSTALL for target

while it's mildly insane that we auto-generate install targets to start
with, we can at least refrain from doing so if there is one already.

as it happens, this removes the need for excluding the qt build
explicitly.

Task-number: QTBUG-38452
Change-Id: I74d5df447fba525fa79896c9be2c71d82bc2c6ce
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
Oswald Buddenhagen 2017-06-06 20:31:59 +02:00
parent ed07bdcb5f
commit c0e94dd093
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
android_install:contains(INSTALLS, target):!isEmpty(target.path): \
CONFIG -= android_install
contains(TEMPLATE, ".*app") {
!android_app {
!contains(TARGET, ".so"): TARGET = lib$${TARGET}.so
@ -8,7 +11,7 @@ contains(TEMPLATE, ".*app") {
INSTALLS *= target
}
}
} else: contains(TEMPLATE, "lib"):!QTDIR_build:android_install {
} else: contains(TEMPLATE, "lib"):android_install {
target.path = /libs/$$ANDROID_TARGET_ARCH/
INSTALLS *= target
}