Version 0.7-0
[vicar] / src / vicar-config-qml / qmlapplicationviewer / qmlapplicationviewer.pri
1 # checksum 0x368d version 0x60010
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         !isEqual(source,$$target) {
56             !isEmpty(copyCommand):copyCommand += &&
57             isEqual(QMAKE_DIR_SEP, \\) {
58                 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
59             } else {
60                 source = $$replace(source, \\\\, /)
61                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
62                 target = $$replace(target, \\\\, /)
63                 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
64             }
65         }
66     }
67     !isEmpty(copyCommand) {
68         copyCommand = @echo Copying application data... && $$copyCommand
69         copydeploymentfolders.commands = $$copyCommand
70         first.depends = $(first) copydeploymentfolders
71         export(first.depends)
72         export(copydeploymentfolders.commands)
73         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
74     }
75 } else:unix {
76     maemo5 {
77         desktopfile.files = $${TARGET}.desktop
78         desktopfile.path = /usr/share/applications/hildon
79         icon.files = $${TARGET}64.png
80         icon.path = /usr/share/icons/hicolor/64x64/apps
81     } else:!isEmpty(MEEGO_VERSION_MAJOR) {
82         desktopfile.files = $${TARGET}_harmattan.desktop
83         desktopfile.path = /usr/share/applications
84         icon.files = $${TARGET}80.png
85         icon.path = /usr/share/icons/hicolor/80x80/apps
86     } else { # Assumed to be a Desktop Unix
87         copyCommand =
88         for(deploymentfolder, DEPLOYMENTFOLDERS) {
89             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
90             source = $$replace(source, \\\\, /)
91             macx {
92                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
93             } else {
94                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
95             }
96             target = $$replace(target, \\\\, /)
97             sourcePathSegments = $$split(source, /)
98             targetFullPath = $$target/$$last(sourcePathSegments)
99             !isEqual(source,$$targetFullPath) {
100                 !isEmpty(copyCommand):copyCommand += &&
101                 copyCommand += $(MKDIR) \"$$target\"
102                 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
103             }
104         }
105         !isEmpty(copyCommand) {
106             copyCommand = @echo Copying application data... && $$copyCommand
107             copydeploymentfolders.commands = $$copyCommand
108             first.depends = $(first) copydeploymentfolders
109             export(first.depends)
110             export(copydeploymentfolders.commands)
111             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
112         }
113     }
114     installPrefix = /opt/$${TARGET}
115     for(deploymentfolder, DEPLOYMENTFOLDERS) {
116         item = item$${deploymentfolder}
117         itemfiles = $${item}.files
118         $$itemfiles = $$eval($${deploymentfolder}.source)
119         itempath = $${item}.path
120         $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
121         export($$itemfiles)
122         export($$itempath)
123         INSTALLS += $$item
124     }
125
126     !isEmpty(desktopfile.path) {
127         export(icon.files)
128         export(icon.path)
129         export(desktopfile.files)
130         export(desktopfile.path)
131         INSTALLS += icon desktopfile
132     }
133
134     target.path = $${installPrefix}/bin
135     export(target.path)
136     INSTALLS += target
137 }
138
139 export (ICON)
140 export (INSTALLS)
141 export (DEPLOYMENT)
142 export (TARGET.EPOCHEAPSIZE)
143 export (TARGET.CAPABILITY)
144 export (LIBS)
145 export (QMAKE_EXTRA_TARGETS)
146 }