~nik90/touch-irc/revamp-connect-page

« back to all changes in this revision

Viewing changes to qtquick2applicationviewer/qtquick2applicationviewer.pri

  • Committer: Joseph Mills
  • Date: 2014-02-12 21:30:08 UTC
  • Revision ID: josephjamesmills@gmail.com-20140212213008-adtrj9elfisd7pf9
1st push ever

Show diffs side-by-side

added added

removed removed

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