Sometimes its the little things..
[qzeecontrol] / qmlapplicationviewer / qmlapplicationviewer.pri
1 # checksum 0x5b42 version 0x70013
2 # This file was generated by the Qt Quick Application wizard of Qt Creator.
3 # The code below adds the QmlApplicationViewer to the project and handles the
4 # 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 += declarative
9
10 SOURCES += $$PWD/qmlapplicationviewer.cpp
11 HEADERS += $$PWD/qmlapplicationviewer.h
12 INCLUDEPATH += $$PWD
13
14 # Include JS debugger library if QMLJSDEBUGGER_PATH is set
15 !isEmpty(QMLJSDEBUGGER_PATH) {
16     include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
17 } else {
18     DEFINES -= QMLJSDEBUGGER
19 }
20
21 contains(CONFIG,qdeclarative-boostable):contains(MEEGO_EDITION,harmattan) {
22     DEFINES += HARMATTAN_BOOSTER
23 }
24 # This file was generated by an application wizard of Qt Creator.
25 # The code below handles deployment to Symbian and Maemo, aswell as copying
26 # of the application data to shadow build directories on desktop.
27 # It is recommended not to modify this file, since newer versions of Qt Creator
28 # may offer an updated version of it.
29
30 defineTest(qtcAddDeployment) {
31 for(deploymentfolder, DEPLOYMENTFOLDERS) {
32     item = item$${deploymentfolder}
33     itemsources = $${item}.sources
34     $$itemsources = $$eval($${deploymentfolder}.source)
35     itempath = $${item}.path
36     $$itempath= $$eval($${deploymentfolder}.target)
37     export($$itemsources)
38     export($$itempath)
39     DEPLOYMENT += $$item
40 }
41
42 MAINPROFILEPWD = $$PWD
43
44 symbian {
45     isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
46     isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
47 } else:win32 {
48     copyCommand =
49     for(deploymentfolder, DEPLOYMENTFOLDERS) {
50         source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
51         source = $$replace(source, /, \\)
52         sourcePathSegments = $$split(source, \\)
53         target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
54         target = $$replace(target, /, \\)
55         target ~= s,\\\\\\.?\\\\,\\,
56         !isEqual(source,$$target) {
57             !isEmpty(copyCommand):copyCommand += &&
58             isEqual(QMAKE_DIR_SEP, \\) {
59                 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
60             } else {
61                 source = $$replace(source, \\\\, /)
62                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
63                 target = $$replace(target, \\\\, /)
64                 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
65             }
66         }
67     }
68     !isEmpty(copyCommand) {
69         copyCommand = @echo Copying application data... && $$copyCommand
70         copydeploymentfolders.commands = $$copyCommand
71         first.depends = $(first) copydeploymentfolders
72         export(first.depends)
73         export(copydeploymentfolders.commands)
74         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
75     }
76 } else:unix {
77     maemo5 {
78         desktopfile.files = $${TARGET}.desktop
79         desktopfile.path = /usr/share/applications/hildon
80         icon.files = $${TARGET}64.png
81         icon.path = /usr/share/icons/hicolor/64x64/apps
82     } else:!isEmpty(MEEGO_VERSION_MAJOR) {
83         desktopfile.files = $${TARGET}_harmattan.desktop
84         desktopfile.path = /usr/share/applications
85         icon.files = $${TARGET}80.png
86         icon.path = /usr/share/icons/hicolor/80x80/apps
87     } else { # Assumed to be a Desktop Unix
88         copyCommand =
89         for(deploymentfolder, DEPLOYMENTFOLDERS) {
90             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
91             source = $$replace(source, \\\\, /)
92             macx {
93                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
94             } else {
95                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
96             }
97             target = $$replace(target, \\\\, /)
98             sourcePathSegments = $$split(source, /)
99             targetFullPath = $$target/$$last(sourcePathSegments)
100             targetFullPath ~= s,/\\.?/,/,
101             !isEqual(source,$$targetFullPath) {
102                 !isEmpty(copyCommand):copyCommand += &&
103                 copyCommand += $(MKDIR) \"$$target\"
104                 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
105             }
106         }
107         !isEmpty(copyCommand) {
108             copyCommand = @echo Copying application data... && $$copyCommand
109             copydeploymentfolders.commands = $$copyCommand
110             first.depends = $(first) copydeploymentfolders
111             export(first.depends)
112             export(copydeploymentfolders.commands)
113             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
114         }
115     }
116     installPrefix = /opt/$${TARGET}
117     for(deploymentfolder, DEPLOYMENTFOLDERS) {
118         item = item$${deploymentfolder}
119         itemfiles = $${item}.files
120         $$itemfiles = $$eval($${deploymentfolder}.source)
121         itempath = $${item}.path
122         $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
123         export($$itemfiles)
124         export($$itempath)
125         INSTALLS += $$item
126     }
127
128     !isEmpty(desktopfile.path) {
129         export(icon.files)
130         export(icon.path)
131         export(desktopfile.files)
132         export(desktopfile.path)
133         INSTALLS += icon desktopfile
134     }
135
136     target.path = $${installPrefix}/bin
137     export(target.path)
138     INSTALLS += target
139 }
140
141 export (ICON)
142 export (INSTALLS)
143 export (DEPLOYMENT)
144 export (TARGET.EPOCHEAPSIZE)
145 export (TARGET.CAPABILITY)
146 export (LIBS)
147 export (QMAKE_EXTRA_TARGETS)
148 }