1 # checksum 0xcaf1 version 0x4000b
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 # Include JS debugger library if QMLJSDEBUGGER_PATH is set
15 !isEmpty(QMLJSDEBUGGER_PATH) {
16 include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
18 DEFINES -= QMLJSDEBUGGER
20 # This file was generated by an application wizard of Qt Creator.
21 # The code below handles deployment to Symbian and Maemo, aswell as copying
22 # of the application data to shadow build directories on desktop.
23 # It is recommended not to modify this file, since newer versions of Qt Creator
24 # may offer an updated version of it.
26 defineTest(qtcAddDeployment) {
27 for(deploymentfolder, DEPLOYMENTFOLDERS) {
28 item = item$${deploymentfolder}
29 itemsources = $${item}.sources
30 $$itemsources = $$eval($${deploymentfolder}.source)
31 itempath = $${item}.path
32 $$itempath= $$eval($${deploymentfolder}.target)
38 MAINPROFILEPWD = $$PWD
41 isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
42 isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
45 for(deploymentfolder, DEPLOYMENTFOLDERS) {
46 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
47 source = $$replace(source, /, \\)
48 sourcePathSegments = $$split(source, \\)
49 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
50 target = $$replace(target, /, \\)
51 !isEqual(source,$$target) {
52 !isEmpty(copyCommand):copyCommand += &&
53 isEqual(QMAKE_DIR_SEP, \\) {
54 copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
56 source = $$replace(source, \\\\, /)
57 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
58 target = $$replace(target, \\\\, /)
59 copyCommand += test -d \"$$target\" || mkdir -p \"$$target\" && cp -r \"$$source\" \"$$target\"
63 !isEmpty(copyCommand) {
64 copyCommand = @echo Copying application data... && $$copyCommand
65 copydeploymentfolders.commands = $$copyCommand
66 first.depends = $(first) copydeploymentfolders
68 export(copydeploymentfolders.commands)
69 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
73 desktopfile.path = /usr/share/applications/hildon
75 desktopfile.path = /usr/share/applications
77 for(deploymentfolder, DEPLOYMENTFOLDERS) {
78 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
79 source = $$replace(source, \\\\, /)
81 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
83 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
85 target = $$replace(target, \\\\, /)
86 sourcePathSegments = $$split(source, /)
87 targetFullPath = $$target/$$last(sourcePathSegments)
88 !isEqual(source,$$targetFullPath) {
89 !isEmpty(copyCommand):copyCommand += &&
90 copyCommand += $(MKDIR) \"$$target\"
91 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
94 !isEmpty(copyCommand) {
95 copyCommand = @echo Copying application data... && $$copyCommand
96 copydeploymentfolders.commands = $$copyCommand
97 first.depends = $(first) copydeploymentfolders
99 export(copydeploymentfolders.commands)
100 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
103 installPrefix = /opt/$${TARGET}
104 for(deploymentfolder, DEPLOYMENTFOLDERS) {
105 item = item$${deploymentfolder}
106 itemfiles = $${item}.files
107 $$itemfiles = $$eval($${deploymentfolder}.source)
108 itempath = $${item}.path
109 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
114 icon.files = $${TARGET}.png
115 icon.path = /usr/share/icons/hicolor/64x64/apps
116 desktopfile.files = $${TARGET}.desktop
117 target.path = $${installPrefix}/bin
120 export(desktopfile.files)
121 export(desktopfile.path)
123 INSTALLS += desktopfile icon target
129 export (TARGET.EPOCHEAPSIZE)
130 export (TARGET.CAPABILITY)
132 export (QMAKE_EXTRA_TARGETS)