1 # checksum 0x82af version 0x6000e
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.files = $${TARGET}.desktop
74 desktopfile.path = /usr/share/applications/hildon
75 icon.files = $${TARGET}64.png
76 icon.path = /usr/share/icons/hicolor/64x64/apps
77 } else:!isEmpty(MEEGO_VERSION_MAJOR) {
78 desktopfile.files = $${TARGET}_harmattan.desktop
79 desktopfile.path = /usr/share/applications
80 icon.files = $${TARGET}80.png
81 icon.path = /usr/share/icons/hicolor/80x80/apps
82 } else { # Assumed to be a Desktop Unix
84 for(deploymentfolder, DEPLOYMENTFOLDERS) {
85 source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
86 source = $$replace(source, \\\\, /)
88 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
90 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
92 target = $$replace(target, \\\\, /)
93 sourcePathSegments = $$split(source, /)
94 targetFullPath = $$target/$$last(sourcePathSegments)
95 !isEqual(source,$$targetFullPath) {
96 !isEmpty(copyCommand):copyCommand += &&
97 copyCommand += $(MKDIR) \"$$target\"
98 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
101 !isEmpty(copyCommand) {
102 copyCommand = @echo Copying application data... && $$copyCommand
103 copydeploymentfolders.commands = $$copyCommand
104 first.depends = $(first) copydeploymentfolders
105 export(first.depends)
106 export(copydeploymentfolders.commands)
107 QMAKE_EXTRA_TARGETS += first copydeploymentfolders
110 installPrefix = /opt/$${TARGET}
111 for(deploymentfolder, DEPLOYMENTFOLDERS) {
112 item = item$${deploymentfolder}
113 itemfiles = $${item}.files
114 $$itemfiles = $$eval($${deploymentfolder}.source)
115 itempath = $${item}.path
116 $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)
122 !isEmpty(desktopfile.path) {
125 export(desktopfile.files)
126 export(desktopfile.path)
127 INSTALLS += icon desktopfile
130 target.path = $${installPrefix}/bin
138 export (TARGET.EPOCHEAPSIZE)
139 export (TARGET.CAPABILITY)
141 export (QMAKE_EXTRA_TARGETS)