iOS: Always use application bundle when building Qt applications
Change-Id: I8fd0f7b43bdcbff0bff2de890fe421eb51233192 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>bb10
parent
bdfbc9e493
commit
d5c729604a
|
|
@ -1,6 +1,15 @@
|
|||
|
||||
equals(TEMPLATE, app) {
|
||||
qt:app_bundle:!macx-xcode {
|
||||
|
||||
# If the application uses Qt, it needs to be an application bundle
|
||||
# to be able to deploy and run on iOS. The only exception to this
|
||||
# is if you're working with a jailbroken device and can run the
|
||||
# resulting binary from the console/over SSH, but that's not a
|
||||
# use-case we care about, so no need to complicate the logic.
|
||||
qt: CONFIG *= app_bundle
|
||||
|
||||
# Application bundles require building through Xcode
|
||||
app_bundle:!macx-xcode {
|
||||
# For Qt applications we want Xcode project files as the generated output,
|
||||
# but since qmake doesn't handle the transition between makefiles and Xcode
|
||||
# project files (which happens when using subdirs), we create a wrapper
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
|
||||
equals(TEMPLATE, app):contains(QT, gui(-private)?) {
|
||||
!macx-xcode: \
|
||||
error("Linking the iOS platform plugin requires bulding through Xcode")
|
||||
|
||||
LIBS *= -L$$[QT_INSTALL_PLUGINS/get]/platforms
|
||||
|
||||
lib_name = qios
|
||||
|
|
|
|||
Loading…
Reference in New Issue