qmlFrontend/qtquick2applicationviewer/qtquick2applicationviewer.pri
author sheepluva
Sun, 01 May 2016 21:09:45 +0200
branchqmlfrontend
changeset 11787 bcba7938ccb5
parent 10402 3313336c1ee0
permissions -rw-r--r--
qmlfrontend/map-preview: add hog count display thingy (only displays "?" for now)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10402
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     1
# checksum 0x7b0d version 0x90005
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     2
# This file was generated by the Qt Quick 2 Application wizard of Qt Creator.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     3
# The code below adds the QtQuick2ApplicationViewer to the project and handles
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     4
# the activation of QML debugging.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     5
# It is recommended not to modify this file, since newer versions of Qt Creator
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     6
# may offer an updated version of it.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     7
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     8
QT += qml quick
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
     9
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    10
SOURCES += $$PWD/qtquick2applicationviewer.cpp
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    11
HEADERS += $$PWD/qtquick2applicationviewer.h
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    12
INCLUDEPATH += $$PWD
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    13
# This file was generated by an application wizard of Qt Creator.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    14
# The code below handles deployment to Android and Maemo, aswell as copying
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    15
# of the application data to shadow build directories on desktop.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    16
# It is recommended not to modify this file, since newer versions of Qt Creator
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    17
# may offer an updated version of it.
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    18
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    19
defineTest(qtcAddDeployment) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    20
for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    21
    item = item$${deploymentfolder}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    22
    greaterThan(QT_MAJOR_VERSION, 4) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    23
        itemsources = $${item}.files
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    24
    } else {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    25
        itemsources = $${item}.sources
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    26
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    27
    $$itemsources = $$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    28
    itempath = $${item}.path
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    29
    $$itempath= $$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    30
    export($$itemsources)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    31
    export($$itempath)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    32
    DEPLOYMENT += $$item
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    33
}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    34
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    35
MAINPROFILEPWD = $$PWD
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    36
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    37
android-no-sdk {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    38
    for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    39
        item = item$${deploymentfolder}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    40
        itemfiles = $${item}.files
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    41
        $$itemfiles = $$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    42
        itempath = $${item}.path
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    43
        $$itempath = /data/user/qt/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    44
        export($$itemfiles)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    45
        export($$itempath)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    46
        INSTALLS += $$item
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    47
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    48
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    49
    target.path = /data/user/qt
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    50
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    51
    export(target.path)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    52
    INSTALLS += target
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    53
} else:android {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    54
    for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    55
        item = item$${deploymentfolder}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    56
        itemfiles = $${item}.files
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    57
        $$itemfiles = $$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    58
        itempath = $${item}.path
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    59
        $$itempath = /assets/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    60
        export($$itemfiles)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    61
        export($$itempath)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    62
        INSTALLS += $$item
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    63
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    64
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    65
    x86 {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    66
        target.path = /libs/x86
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    67
    } else: armeabi-v7a {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    68
        target.path = /libs/armeabi-v7a
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    69
    } else {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    70
        target.path = /libs/armeabi
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    71
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    72
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    73
    export(target.path)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    74
    INSTALLS += target
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    75
} else:win32 {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    76
    copyCommand =
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    77
    for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    78
        source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    79
        source = $$replace(source, /, \\)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    80
        sourcePathSegments = $$split(source, \\)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    81
        target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    82
        target = $$replace(target, /, \\)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    83
        target ~= s,\\\\\\.?\\\\,\\,
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    84
        !isEqual(source,$$target) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    85
            !isEmpty(copyCommand):copyCommand += &&
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    86
            isEqual(QMAKE_DIR_SEP, \\) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    87
                copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    88
            } else {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    89
                source = $$replace(source, \\\\, /)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    90
                target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    91
                target = $$replace(target, \\\\, /)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    92
                copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    93
            }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    94
        }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    95
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    96
    !isEmpty(copyCommand) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    97
        copyCommand = @echo Copying application data... && $$copyCommand
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    98
        copydeploymentfolders.commands = $$copyCommand
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
    99
        first.depends = $(first) copydeploymentfolders
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   100
        export(first.depends)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   101
        export(copydeploymentfolders.commands)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   102
        QMAKE_EXTRA_TARGETS += first copydeploymentfolders
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   103
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   104
} else:unix {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   105
    maemo5 {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   106
        desktopfile.files = $${TARGET}.desktop
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   107
        desktopfile.path = /usr/share/applications/hildon
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   108
        icon.files = $${TARGET}64.png
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   109
        icon.path = /usr/share/icons/hicolor/64x64/apps
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   110
    } else:!isEmpty(MEEGO_VERSION_MAJOR) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   111
        desktopfile.files = $${TARGET}_harmattan.desktop
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   112
        desktopfile.path = /usr/share/applications
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   113
        icon.files = $${TARGET}80.png
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   114
        icon.path = /usr/share/icons/hicolor/80x80/apps
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   115
    } else { # Assumed to be a Desktop Unix
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   116
        copyCommand =
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   117
        for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   118
            source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   119
            source = $$replace(source, \\\\, /)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   120
            macx {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   121
                target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   122
            } else {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   123
                target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   124
            }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   125
            target = $$replace(target, \\\\, /)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   126
            sourcePathSegments = $$split(source, /)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   127
            targetFullPath = $$target/$$last(sourcePathSegments)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   128
            targetFullPath ~= s,/\\.?/,/,
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   129
            !isEqual(source,$$targetFullPath) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   130
                !isEmpty(copyCommand):copyCommand += &&
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   131
                copyCommand += $(MKDIR) \"$$target\"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   132
                copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   133
            }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   134
        }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   135
        !isEmpty(copyCommand) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   136
            copyCommand = @echo Copying application data... && $$copyCommand
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   137
            copydeploymentfolders.commands = $$copyCommand
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   138
            first.depends = $(first) copydeploymentfolders
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   139
            export(first.depends)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   140
            export(copydeploymentfolders.commands)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   141
            QMAKE_EXTRA_TARGETS += first copydeploymentfolders
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   142
        }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   143
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   144
    !isEmpty(target.path) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   145
        installPrefix = $${target.path}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   146
    } else {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   147
        installPrefix = /opt/$${TARGET}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   148
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   149
    for(deploymentfolder, DEPLOYMENTFOLDERS) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   150
        item = item$${deploymentfolder}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   151
        itemfiles = $${item}.files
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   152
        $$itemfiles = $$eval($${deploymentfolder}.source)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   153
        itempath = $${item}.path
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   154
        $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   155
        export($$itemfiles)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   156
        export($$itempath)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   157
        INSTALLS += $$item
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   158
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   159
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   160
    !isEmpty(desktopfile.path) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   161
        export(icon.files)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   162
        export(icon.path)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   163
        export(desktopfile.files)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   164
        export(desktopfile.path)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   165
        INSTALLS += icon desktopfile
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   166
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   167
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   168
    isEmpty(target.path) {
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   169
        target.path = $${installPrefix}/bin
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   170
        export(target.path)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   171
    }
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   172
    INSTALLS += target
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   173
}
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   174
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   175
export (ICON)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   176
export (INSTALLS)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   177
export (DEPLOYMENT)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   178
export (LIBS)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   179
export (QMAKE_EXTRA_TARGETS)
3313336c1ee0 Let's get it started
unc0rr
parents:
diff changeset
   180
}