PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/deployment.pri

http://cutefootball.googlecode.com/
Unknown | 111 lines | 107 code | 4 blank | 0 comment | 0 complexity | 6fa60eb673b68fd4736416c793adde84 MD5 | raw file
  1# checksum 0x2939 version 0x20001
  2# This file was generated by an application wizard of Qt Creator.
  3# The code below handles deployment to Symbian and Maemo, aswell as copying
  4# of the application data to shadow build directories on desktop.
  5# It is recommended not to modify this file, since newer versions of Qt Creator
  6# may offer an updated version of it.
  7
  8defineTest(qtcAddDeployment) {
  9for(deploymentfolder, DEPLOYMENTFOLDERS) {
 10    item = item$${deploymentfolder}
 11    itemsources = $${item}.sources
 12    $$itemsources = $$eval($${deploymentfolder}.source)
 13    itempath = $${item}.path
 14    $$itempath= $$eval($${deploymentfolder}.target)
 15    export($$itemsources)
 16    export($$itempath)
 17    DEPLOYMENT += $$item
 18}
 19
 20MAINPROFILEPWD = $$PWD
 21
 22symbian {
 23    ICON = images/$${TARGET}.svg
 24    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
 25    contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
 26    contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
 27} else:win32 {
 28    copyCommand =
 29    for(deploymentfolder, DEPLOYMENTFOLDERS) {
 30        source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
 31        source = $$replace(source, /, \\)
 32        sourcePathSegments = $$split(source, \\)
 33        target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
 34        target = $$replace(target, /, \\)
 35        !isEqual(source,$$target) {
 36            !isEmpty(copyCommand):copyCommand += &&
 37            copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
 38        }
 39    }
 40    !isEmpty(copyCommand) {
 41        copyCommand = @echo Copying application data... && $$copyCommand
 42        copydeploymentfolders.commands = $$copyCommand
 43        first.depends = $(first) copydeploymentfolders
 44        export(first.depends)
 45        export(copydeploymentfolders.commands)
 46        QMAKE_EXTRA_TARGETS += first copydeploymentfolders
 47    }
 48} else:unix {
 49    maemo5 {
 50        installPrefix = /opt/usr
 51        desktopfile.path = /usr/share/applications/hildon
 52    } else {
 53        installPrefix = /usr/local
 54        desktopfile.path = /usr/share/applications
 55        copyCommand =
 56        for(deploymentfolder, DEPLOYMENTFOLDERS) {
 57            source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
 58            source = $$replace(source, \\, /)
 59            macx {
 60                target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
 61            } else {
 62                target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
 63            }
 64            target = $$replace(target, \\, /)
 65            sourcePathSegments = $$split(source, /)
 66            targetFullPath = $$target/$$last(sourcePathSegments)
 67            !isEqual(source,$$targetFullPath) {
 68                !isEmpty(copyCommand):copyCommand += &&
 69                copyCommand += $(MKDIR) \"$$target\"
 70                copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
 71            }
 72        }
 73        !isEmpty(copyCommand) {
 74            copyCommand = @echo Copying application data... && $$copyCommand
 75            copydeploymentfolders.commands = $$copyCommand
 76            first.depends = $(first) copydeploymentfolders
 77            export(first.depends)
 78            export(copydeploymentfolders.commands)
 79            QMAKE_EXTRA_TARGETS += first copydeploymentfolders
 80        }
 81    }
 82    for(deploymentfolder, DEPLOYMENTFOLDERS) {
 83        item = item$${deploymentfolder}
 84        itemfiles = $${item}.files
 85        $$itemfiles = $$eval($${deploymentfolder}.source)
 86        itempath = $${item}.path
 87        $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
 88        export($$itemfiles)
 89        export($$itempath)
 90        INSTALLS += $$item
 91    }
 92    icon.files = $${TARGET}.png
 93    icon.path = /usr/share/icons/hicolor/64x64/apps
 94    desktopfile.files = $${TARGET}.desktop
 95    target.path = $${installPrefix}/bin
 96    export(icon.files)
 97    export(icon.path)
 98    export(desktopfile.files)
 99    export(desktopfile.path)
100    export(target.path)
101    INSTALLS += desktopfile icon target
102}
103
104export (ICON)
105export (INSTALLS)
106export (DEPLOYMENT)
107export (TARGET.EPOCHEAPSIZE)
108export (TARGET.CAPABILITY)
109export (LIBS)
110export (QMAKE_EXTRA_TARGETS)
111}