2010-11-01 17:03:46 +01:00
|
|
|
# This file was generated by an application wizard of Qt Creator.
|
2012-08-22 13:27:25 +02:00
|
|
|
# The code below handles deployment to Android and Maemo, aswell as copying
|
2010-11-01 17:03:46 +01:00
|
|
|
# of the application data to shadow build directories on desktop.
|
|
|
|
|
# It is recommended not to modify this file, since newer versions of Qt Creator
|
|
|
|
|
# may offer an updated version of it.
|
2010-09-14 15:06:15 +02:00
|
|
|
|
|
|
|
|
defineTest(qtcAddDeployment) {
|
|
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
item = item$${deploymentfolder}
|
2012-07-02 16:33:42 +02:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
|
itemsources = $${item}.files
|
|
|
|
|
} else {
|
|
|
|
|
itemsources = $${item}.sources
|
|
|
|
|
}
|
2010-09-14 15:06:15 +02:00
|
|
|
$$itemsources = $$eval($${deploymentfolder}.source)
|
|
|
|
|
itempath = $${item}.path
|
|
|
|
|
$$itempath= $$eval($${deploymentfolder}.target)
|
|
|
|
|
export($$itemsources)
|
|
|
|
|
export($$itempath)
|
|
|
|
|
DEPLOYMENT += $$item
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MAINPROFILEPWD = $$PWD
|
|
|
|
|
|
2013-03-18 15:03:39 +01:00
|
|
|
android-no-sdk {
|
|
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
item = item$${deploymentfolder}
|
|
|
|
|
itemfiles = $${item}.files
|
|
|
|
|
$$itemfiles = $$eval($${deploymentfolder}.source)
|
|
|
|
|
itempath = $${item}.path
|
|
|
|
|
$$itempath = /data/user/qt/$$eval($${deploymentfolder}.target)
|
|
|
|
|
export($$itemfiles)
|
|
|
|
|
export($$itempath)
|
|
|
|
|
INSTALLS += $$item
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
target.path = /data/user/qt
|
|
|
|
|
|
|
|
|
|
export(target.path)
|
|
|
|
|
INSTALLS += target
|
|
|
|
|
} else:android {
|
2012-04-18 20:30:57 +03:00
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
item = item$${deploymentfolder}
|
|
|
|
|
itemfiles = $${item}.files
|
|
|
|
|
$$itemfiles = $$eval($${deploymentfolder}.source)
|
|
|
|
|
itempath = $${item}.path
|
|
|
|
|
$$itempath = /assets/$$eval($${deploymentfolder}.target)
|
|
|
|
|
export($$itemfiles)
|
|
|
|
|
export($$itempath)
|
|
|
|
|
INSTALLS += $$item
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
x86 {
|
|
|
|
|
target.path = /libs/x86
|
|
|
|
|
} else: armeabi-v7a {
|
|
|
|
|
target.path = /libs/armeabi-v7a
|
|
|
|
|
} else {
|
|
|
|
|
target.path = /libs/armeabi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export(target.path)
|
|
|
|
|
INSTALLS += target
|
2010-09-14 15:06:15 +02:00
|
|
|
} else:win32 {
|
2010-12-08 16:07:09 +01:00
|
|
|
copyCommand =
|
|
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
|
|
|
|
|
source = $$replace(source, /, \\)
|
|
|
|
|
sourcePathSegments = $$split(source, \\)
|
|
|
|
|
target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
|
|
|
|
|
target = $$replace(target, /, \\)
|
2011-11-04 18:52:11 +01:00
|
|
|
target ~= s,\\\\\\.?\\\\,\\,
|
2010-12-08 16:07:09 +01:00
|
|
|
!isEqual(source,$$target) {
|
|
|
|
|
!isEmpty(copyCommand):copyCommand += &&
|
2011-04-11 13:29:24 +02:00
|
|
|
isEqual(QMAKE_DIR_SEP, \\) {
|
2011-03-30 18:28:09 +02:00
|
|
|
copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
|
|
|
|
|
} else {
|
|
|
|
|
source = $$replace(source, \\\\, /)
|
|
|
|
|
target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
|
|
|
|
|
target = $$replace(target, \\\\, /)
|
|
|
|
|
copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
|
|
|
|
|
}
|
2010-09-14 15:06:15 +02:00
|
|
|
}
|
2010-12-08 16:07:09 +01:00
|
|
|
}
|
|
|
|
|
!isEmpty(copyCommand) {
|
|
|
|
|
copyCommand = @echo Copying application data... && $$copyCommand
|
2010-09-14 15:06:15 +02:00
|
|
|
copydeploymentfolders.commands = $$copyCommand
|
|
|
|
|
first.depends = $(first) copydeploymentfolders
|
|
|
|
|
export(first.depends)
|
|
|
|
|
export(copydeploymentfolders.commands)
|
|
|
|
|
QMAKE_EXTRA_TARGETS += first copydeploymentfolders
|
|
|
|
|
}
|
2013-11-15 14:24:47 +01:00
|
|
|
} else:ios {
|
2013-11-11 16:32:35 +01:00
|
|
|
copyCommand =
|
|
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
|
|
|
|
|
source = $$replace(source, \\\\, /)
|
|
|
|
|
target = $CODESIGNING_FOLDER_PATH/$$eval($${deploymentfolder}.target)
|
|
|
|
|
target = $$replace(target, \\\\, /)
|
|
|
|
|
sourcePathSegments = $$split(source, /)
|
|
|
|
|
targetFullPath = $$target/$$last(sourcePathSegments)
|
|
|
|
|
targetFullPath ~= s,/\\.?/,/,
|
|
|
|
|
!isEqual(source,$$targetFullPath) {
|
|
|
|
|
!isEmpty(copyCommand):copyCommand += &&
|
|
|
|
|
copyCommand += mkdir -p \"$$target\"
|
|
|
|
|
copyCommand += && cp -r \"$$source\" \"$$target\"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
!isEmpty(copyCommand) {
|
|
|
|
|
copyCommand = echo Copying application data... && $$copyCommand
|
|
|
|
|
!isEmpty(QMAKE_POST_LINK): QMAKE_POST_LINK += ";"
|
|
|
|
|
QMAKE_POST_LINK += "$$copyCommand"
|
|
|
|
|
export(QMAKE_POST_LINK)
|
|
|
|
|
}
|
2010-09-14 15:06:15 +02:00
|
|
|
} else:unix {
|
|
|
|
|
maemo5 {
|
2011-05-20 11:17:57 +02:00
|
|
|
desktopfile.files = $${TARGET}.desktop
|
2010-12-08 16:07:09 +01:00
|
|
|
desktopfile.path = /usr/share/applications/hildon
|
2011-04-28 15:11:42 +02:00
|
|
|
icon.files = $${TARGET}64.png
|
|
|
|
|
icon.path = /usr/share/icons/hicolor/64x64/apps
|
2011-07-07 17:29:52 +02:00
|
|
|
} else:!isEmpty(MEEGO_VERSION_MAJOR) {
|
2011-05-20 11:17:57 +02:00
|
|
|
desktopfile.files = $${TARGET}_harmattan.desktop
|
2010-09-14 15:06:15 +02:00
|
|
|
desktopfile.path = /usr/share/applications
|
2011-04-28 15:11:42 +02:00
|
|
|
icon.files = $${TARGET}80.png
|
|
|
|
|
icon.path = /usr/share/icons/hicolor/80x80/apps
|
2011-07-07 17:29:52 +02:00
|
|
|
} else { # Assumed to be a Desktop Unix
|
2010-12-08 16:07:09 +01:00
|
|
|
copyCommand =
|
|
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
|
2011-03-30 18:32:22 +02:00
|
|
|
source = $$replace(source, \\\\, /)
|
2010-12-08 16:07:09 +01:00
|
|
|
macx {
|
|
|
|
|
target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
|
|
|
|
|
} else {
|
|
|
|
|
target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
|
2010-09-14 15:06:15 +02:00
|
|
|
}
|
2011-03-30 18:32:22 +02:00
|
|
|
target = $$replace(target, \\\\, /)
|
2010-12-08 16:07:09 +01:00
|
|
|
sourcePathSegments = $$split(source, /)
|
|
|
|
|
targetFullPath = $$target/$$last(sourcePathSegments)
|
2011-11-04 18:52:11 +01:00
|
|
|
targetFullPath ~= s,/\\.?/,/,
|
2010-12-08 16:07:09 +01:00
|
|
|
!isEqual(source,$$targetFullPath) {
|
|
|
|
|
!isEmpty(copyCommand):copyCommand += &&
|
|
|
|
|
copyCommand += $(MKDIR) \"$$target\"
|
|
|
|
|
copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
!isEmpty(copyCommand) {
|
|
|
|
|
copyCommand = @echo Copying application data... && $$copyCommand
|
2010-09-14 15:06:15 +02:00
|
|
|
copydeploymentfolders.commands = $$copyCommand
|
|
|
|
|
first.depends = $(first) copydeploymentfolders
|
|
|
|
|
export(first.depends)
|
|
|
|
|
export(copydeploymentfolders.commands)
|
|
|
|
|
QMAKE_EXTRA_TARGETS += first copydeploymentfolders
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-01-21 00:32:21 +09:00
|
|
|
!isEmpty(target.path) {
|
|
|
|
|
installPrefix = $${target.path}
|
|
|
|
|
} else {
|
|
|
|
|
installPrefix = /opt/$${TARGET}
|
|
|
|
|
}
|
2010-09-14 15:06:15 +02:00
|
|
|
for(deploymentfolder, DEPLOYMENTFOLDERS) {
|
|
|
|
|
item = item$${deploymentfolder}
|
|
|
|
|
itemfiles = $${item}.files
|
|
|
|
|
$$itemfiles = $$eval($${deploymentfolder}.source)
|
|
|
|
|
itempath = $${item}.path
|
2011-02-08 18:08:03 +01:00
|
|
|
$$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
|
2010-09-14 15:06:15 +02:00
|
|
|
export($$itemfiles)
|
|
|
|
|
export($$itempath)
|
|
|
|
|
INSTALLS += $$item
|
|
|
|
|
}
|
2011-07-07 17:29:52 +02:00
|
|
|
|
|
|
|
|
!isEmpty(desktopfile.path) {
|
|
|
|
|
export(icon.files)
|
|
|
|
|
export(icon.path)
|
|
|
|
|
export(desktopfile.files)
|
|
|
|
|
export(desktopfile.path)
|
|
|
|
|
INSTALLS += icon desktopfile
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-21 00:32:21 +09:00
|
|
|
isEmpty(target.path) {
|
|
|
|
|
target.path = $${installPrefix}/bin
|
|
|
|
|
export(target.path)
|
|
|
|
|
}
|
2011-07-07 17:29:52 +02:00
|
|
|
INSTALLS += target
|
2010-09-14 15:06:15 +02:00
|
|
|
}
|
|
|
|
|
|
2010-10-03 00:28:36 +02:00
|
|
|
export (ICON)
|
2010-09-14 15:06:15 +02:00
|
|
|
export (INSTALLS)
|
|
|
|
|
export (DEPLOYMENT)
|
|
|
|
|
export (LIBS)
|
|
|
|
|
export (QMAKE_EXTRA_TARGETS)
|
|
|
|
|
}
|