cards/qmlapplicationviewer/qmlapplicationviewer.pri
author John Kern <johnk@symbian.org>
Mon, 25 Oct 2010 10:35:32 -0700
changeset 3 2e16639599b7
permissions -rwxr-xr-x
flipping cards example
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
# checksum 0xc123 version 0x10008
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
# This file should not be edited.
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
# Future versions of Qt Creator might offer updated versions of this file.
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
QT += declarative
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
SOURCES += $$PWD/qmlapplicationviewer.cpp
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
HEADERS += $$PWD/qmlapplicationviewer.h
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
INCLUDEPATH += $$PWD
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
contains(DEFINES, QMLOBSERVER) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
    DEFINES *= QMLJSDEBUGGER
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
defineTest(minQtVersion) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
    maj = $$1
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
    min = $$2
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
    patch = $$3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
    isEqual(QT_MAJOR_VERSION, $$maj) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
        isEqual(QT_MINOR_VERSION, $$min) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
            isEqual(QT_PATCH_VERSION, $$patch) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
                return(true)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
            }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
            greaterThan(QT_PATCH_VERSION, $$patch) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
                return(true)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
            }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
        greaterThan(QT_MINOR_VERSION, $$min) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    29
            return(true)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    32
    return(false)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    33
}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    35
contains(DEFINES, QMLJSDEBUGGER) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    36
    CONFIG(debug, debug|release) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    37
        !minQtVersion(4, 7, 1) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    38
            warning()
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    39
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    40
            warning("This library requires Qt 4.7.1 or newer.")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    41
            warning()
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    42
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    43
            error("Qt version $$QT_VERSION too old for QmlJS Debugging. Aborting.")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    44
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    45
        isEmpty(QMLJSDEBUGGER_PATH) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    46
            warning()
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    47
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    48
            warning("Please specify its location on the qmake command line, eg")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    49
            warning("  qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    50
            warning()
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    51
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    52
            error("QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.")
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    53
            DEFINES -= QMLJSDEBUGGER
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    54
        } else {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    55
            include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    56
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    57
    } else {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    58
        DEFINES -= QMLJSDEBUGGER
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    59
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    60
}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    61
# This file should not be edited.
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    62
# Future versions of Qt Creator might offer updated versions of this file.
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    63
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    64
defineTest(qtcAddDeployment) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    65
for(deploymentfolder, DEPLOYMENTFOLDERS) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    66
    item = item$${deploymentfolder}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    67
    itemsources = $${item}.sources
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    68
    $$itemsources = $$eval($${deploymentfolder}.source)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    69
    itempath = $${item}.path
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    70
    $$itempath= $$eval($${deploymentfolder}.target)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    71
    export($$itemsources)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    72
    export($$itempath)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    73
    DEPLOYMENT += $$item
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    74
}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    75
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    76
MAINPROFILEPWD = $$PWD
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    77
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    78
symbian {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    79
    ICON = $${TARGET}.svg
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    80
    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    81
    contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -leiksrv -lcone
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    82
    contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    83
} else:win32 {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    84
    !isEqual(PWD,$$OUT_PWD) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    85
        copyCommand = @echo Copying application data...
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    86
        for(deploymentfolder, DEPLOYMENTFOLDERS) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    87
            source = $$eval($${deploymentfolder}.source)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    88
            pathSegments = $$split(source, /)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    89
            sourceAndTarget = $$MAINPROFILEPWD/$$source $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(pathSegments)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    90
            copyCommand += && $(COPY_DIR) $$replace(sourceAndTarget, /, \\)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    91
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    92
        copydeploymentfolders.commands = $$copyCommand
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    93
        first.depends = $(first) copydeploymentfolders
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    94
        export(first.depends)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    95
        export(copydeploymentfolders.commands)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    96
        QMAKE_EXTRA_TARGETS += first copydeploymentfolders
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    97
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    98
} else:unix {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    99
    maemo5 {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   100
        installPrefix = /opt/usr
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   101
        desktopfile.path = /usr/share/applications/hildon       
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   102
    } else {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   103
        installPrefix = /usr/local
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   104
        desktopfile.path = /usr/share/applications
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   105
        !isEqual(PWD,$$OUT_PWD) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   106
            copyCommand = @echo Copying application data...
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   107
            for(deploymentfolder, DEPLOYMENTFOLDERS) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   108
                macx {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   109
                    target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   110
                } else {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   111
                    target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   112
                }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   113
                copyCommand += && $(MKDIR) $$target
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   114
                copyCommand += && $(COPY_DIR) $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) $$target
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   115
            }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   116
            copydeploymentfolders.commands = $$copyCommand
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   117
            first.depends = $(first) copydeploymentfolders
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   118
            export(first.depends)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   119
            export(copydeploymentfolders.commands)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   120
            QMAKE_EXTRA_TARGETS += first copydeploymentfolders
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   121
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   122
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   123
    for(deploymentfolder, DEPLOYMENTFOLDERS) {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   124
        item = item$${deploymentfolder}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   125
        itemfiles = $${item}.files
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   126
        $$itemfiles = $$eval($${deploymentfolder}.source)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   127
        itempath = $${item}.path
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   128
        $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   129
        export($$itemfiles)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   130
        export($$itempath)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   131
        INSTALLS += $$item
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   132
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   133
    icon.files = $${TARGET}.png
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   134
    icon.path = /usr/share/icons/hicolor/64x64/apps
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   135
    desktopfile.files = $${TARGET}.desktop
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   136
    target.path = $${installPrefix}/bin
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   137
    export(icon.files)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   138
    export(icon.path)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   139
    export(desktopfile.files)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   140
    export(desktopfile.path)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   141
    export(target.path)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   142
    INSTALLS += desktopfile icon target
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   143
}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   144
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   145
export (ICON)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   146
export (INSTALLS)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   147
export (DEPLOYMENT)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   148
export (TARGET.EPOCHEAPSIZE)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   149
export (TARGET.CAPABILITY)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   150
export (LIBS)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   151
export (QMAKE_EXTRA_TARGETS)
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
   152
}