qmlapplicationviewer/qmlapplicationviewer.pri

changeset 0
ff1b43f833a9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/qmlapplicationviewer/qmlapplicationviewer.pri	Fri Jul 08 21:05:20 2011 +0200
     1.3 @@ -0,0 +1,133 @@
     1.4 +# checksum 0xcaf1 version 0x4000b
     1.5 +# This file was generated by the Qt Quick Application wizard of Qt Creator.
     1.6 +# The code below adds the QmlApplicationViewer to the project and handles the
     1.7 +# activation of QML debugging.
     1.8 +# It is recommended not to modify this file, since newer versions of Qt Creator
     1.9 +# may offer an updated version of it.
    1.10 +
    1.11 +QT += declarative
    1.12 +
    1.13 +SOURCES += $$PWD/qmlapplicationviewer.cpp
    1.14 +HEADERS += $$PWD/qmlapplicationviewer.h
    1.15 +INCLUDEPATH += $$PWD
    1.16 +
    1.17 +# Include JS debugger library if QMLJSDEBUGGER_PATH is set
    1.18 +!isEmpty(QMLJSDEBUGGER_PATH) {
    1.19 +    include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
    1.20 +} else {
    1.21 +    DEFINES -= QMLJSDEBUGGER
    1.22 +}
    1.23 +# This file was generated by an application wizard of Qt Creator.
    1.24 +# The code below handles deployment to Symbian and Maemo, aswell as copying
    1.25 +# of the application data to shadow build directories on desktop.
    1.26 +# It is recommended not to modify this file, since newer versions of Qt Creator
    1.27 +# may offer an updated version of it.
    1.28 +
    1.29 +defineTest(qtcAddDeployment) {
    1.30 +for(deploymentfolder, DEPLOYMENTFOLDERS) {
    1.31 +    item = item$${deploymentfolder}
    1.32 +    itemsources = $${item}.sources
    1.33 +    $$itemsources = $$eval($${deploymentfolder}.source)
    1.34 +    itempath = $${item}.path
    1.35 +    $$itempath= $$eval($${deploymentfolder}.target)
    1.36 +    export($$itemsources)
    1.37 +    export($$itempath)
    1.38 +    DEPLOYMENT += $$item
    1.39 +}
    1.40 +
    1.41 +MAINPROFILEPWD = $$PWD
    1.42 +
    1.43 +symbian {
    1.44 +    isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
    1.45 +    isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
    1.46 +} else:win32 {
    1.47 +    copyCommand =
    1.48 +    for(deploymentfolder, DEPLOYMENTFOLDERS) {
    1.49 +        source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
    1.50 +        source = $$replace(source, /, \\)
    1.51 +        sourcePathSegments = $$split(source, \\)
    1.52 +        target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
    1.53 +        target = $$replace(target, /, \\)
    1.54 +        !isEqual(source,$$target) {
    1.55 +            !isEmpty(copyCommand):copyCommand += &&
    1.56 +            isEqual(QMAKE_DIR_SEP, \\) {
    1.57 +                copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
    1.58 +            } else {
    1.59 +                source = $$replace(source, \\\\, /)
    1.60 +                target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
    1.61 +                target = $$replace(target, \\\\, /)
    1.62 +                copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
    1.63 +            }
    1.64 +        }
    1.65 +    }
    1.66 +    !isEmpty(copyCommand) {
    1.67 +        copyCommand = @echo Copying application data... && $$copyCommand
    1.68 +        copydeploymentfolders.commands = $$copyCommand
    1.69 +        first.depends = $(first) copydeploymentfolders
    1.70 +        export(first.depends)
    1.71 +        export(copydeploymentfolders.commands)
    1.72 +        QMAKE_EXTRA_TARGETS += first copydeploymentfolders
    1.73 +    }
    1.74 +} else:unix {
    1.75 +    maemo5 {
    1.76 +        desktopfile.path = /usr/share/applications/hildon
    1.77 +    } else {
    1.78 +        desktopfile.path = /usr/share/applications
    1.79 +        copyCommand =
    1.80 +        for(deploymentfolder, DEPLOYMENTFOLDERS) {
    1.81 +            source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
    1.82 +            source = $$replace(source, \\\\, /)
    1.83 +            macx {
    1.84 +                target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
    1.85 +            } else {
    1.86 +                target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
    1.87 +            }
    1.88 +            target = $$replace(target, \\\\, /)
    1.89 +            sourcePathSegments = $$split(source, /)
    1.90 +            targetFullPath = $$target/$$last(sourcePathSegments)
    1.91 +            !isEqual(source,$$targetFullPath) {
    1.92 +                !isEmpty(copyCommand):copyCommand += &&
    1.93 +                copyCommand += $(MKDIR) \"$$target\"
    1.94 +                copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
    1.95 +            }
    1.96 +        }
    1.97 +        !isEmpty(copyCommand) {
    1.98 +            copyCommand = @echo Copying application data... && $$copyCommand
    1.99 +            copydeploymentfolders.commands = $$copyCommand
   1.100 +            first.depends = $(first) copydeploymentfolders
   1.101 +            export(first.depends)
   1.102 +            export(copydeploymentfolders.commands)
   1.103 +            QMAKE_EXTRA_TARGETS += first copydeploymentfolders
   1.104 +        }
   1.105 +    }
   1.106 +    installPrefix = /usr
   1.107 +    for(deploymentfolder, DEPLOYMENTFOLDERS) {
   1.108 +        item = item$${deploymentfolder}
   1.109 +        itemfiles = $${item}.files
   1.110 +        $$itemfiles = $$eval($${deploymentfolder}.source)
   1.111 +        itempath = $${item}.path
   1.112 +        $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
   1.113 +        export($$itemfiles)
   1.114 +        export($$itempath)
   1.115 +        INSTALLS += $$item
   1.116 +    }
   1.117 +    icon.files = icons/$${TARGET}.svg
   1.118 +    icon.path = /usr/share/icons/hicolor/scalable/apps
   1.119 +    desktopfile.files = pkgs/$${TARGET}.desktop
   1.120 +    target.path = $${installPrefix}/bin
   1.121 +    export(icon.files)
   1.122 +    export(icon.path)
   1.123 +    export(desktopfile.files)
   1.124 +    export(desktopfile.path)
   1.125 +    export(target.path)
   1.126 +    INSTALLS += desktopfile icon target
   1.127 +}
   1.128 +
   1.129 +export (ICON)
   1.130 +export (INSTALLS)
   1.131 +export (DEPLOYMENT)
   1.132 +export (TARGET.EPOCHEAPSIZE)
   1.133 +export (TARGET.CAPABILITY)
   1.134 +export (LIBS)
   1.135 +export (QMAKE_EXTRA_TARGETS)
   1.136 +}

mercurial