1 # checksum 0x89 version 0x2000a
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.
10 SOURCES += $$PWD/qmlapplicationviewer.cpp
11 HEADERS += $$PWD/qmlapplicationviewer.h
14 defineTest(minQtVersion) {
18 isEqual(QT_MAJOR_VERSION, $$maj) {
19 isEqual(QT_MINOR_VERSION, $$min) {
20 isEqual(QT_PATCH_VERSION, $$patch) {
23 greaterThan(QT_PATCH_VERSION, $$patch) {
27 greaterThan(QT_MINOR_VERSION, $$min) {
34 contains(DEFINES, QMLJSDEBUGGER) {
35 CONFIG(debug, debug|release) {
36 !minQtVersion(4, 7, 1) {
38 warning("Disabling QML debugging:")
40 warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
41 warning("This library requires Qt 4.7.1 or newer.")
43 DEFINES -= QMLJSDEBUGGER
44 } else:isEmpty(QMLJSDEBUGGER_PATH) {
46 warning("Disabling QML debugging:")
48 warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
49 warning("Please specify its location on the qmake command line, eg")
50 warning(" qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
52 DEFINES -= QMLJSDEBUGGER
54 include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
57 DEFINES -= QMLJSDEBUGGER
60 # This file was generated by an application wizard of Qt Creator.
61 # The code below handles deployment to Symbian and Maemo, aswell as copying
62 # of the application data to shadow build directories on desktop.
63 # It is recommended not to modify this file, since newer versions of Qt Creator
64 # may offer an updated version of it.
66 defineTest(qtcAddDeployment) {
67 for(deploymentfolder, DEPLOYMENTFOLDERS) {
68 item = item$${deploymentfolder}
69 itemsources = $${item}.sources
70 $$itemsources = $$eval($${deploymentfolder}.source)
71 itempath = $${item}.path
72 $$itempath= $$eval($${deploymentfolder}.target)
78 MAINPROFILEPWD = $$PWD
82 TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
83 contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
84 contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
87 for(deploymentfolder, DEPLOYMENTFOLDERS) {
88 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
89 source = $$replace(source, /, \\)
90 sourcePathSegments = $$split(source, \\)
91 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
92 target = $$replace(target, /, \\)
93 !isEqual(source,$$target) {
94 !isEmpty(copyCommand):copyCommand += &&
95 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
98 !isEmpty(copyCommand) {
99 copyCommand = @echo Copying application data... && $$copyCommand
100 copydeploymentfolders.commands = $$copyCommand
101 first.depends = $(first) copydeploymentfolders
102 export(first.depends)
103 export(copydeploymentfolders.commands)
104 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
108 installPrefix = /opt/usr
109 desktopfile.path = /usr/share/applications/hildon
111 installPrefix = /usr/local
112 desktopfile.path = /usr/share/applications
114 for(deploymentfolder, DEPLOYMENTFOLDERS) {
115 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
116 source = $$replace(source, \\, /)
118 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
120 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
122 target = $$replace(target, \\, /)
123 sourcePathSegments = $$split(source, /)
124 targetFullPath = $$target/$$last(sourcePathSegments)
125 !isEqual(source,$$targetFullPath) {
126 !isEmpty(copyCommand):copyCommand += &&
127 copyCommand += $(MKDIR) \"$$target\"
128 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
131 !isEmpty(copyCommand) {
132 copyCommand = @echo Copying application data... && $$copyCommand
133 copydeploymentfolders.commands = $$copyCommand
134 first.depends = $(first) copydeploymentfolders
135 export(first.depends)
136 export(copydeploymentfolders.commands)
137 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
140 for(deploymentfolder, DEPLOYMENTFOLDERS) {
141 item = item$${deploymentfolder}
142 itemfiles = $${item}.files
143 $$itemfiles = $$eval($${deploymentfolder}.source)
144 itempath = $${item}.path
145 $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
150 icon.files = $${TARGET}.png
151 icon.path = /usr/share/icons/hicolor/64x64/apps
152 desktopfile.files = $${TARGET}.desktop
153 target.path = $${installPrefix}/bin
156 export(desktopfile.files)
157 export(desktopfile.path)
159 INSTALLS += desktopfile icon target
165 export (TARGET.EPOCHEAPSIZE)
166 export (TARGET.CAPABILITY)
168 export (QMAKE_EXTRA_TARGETS)