* Know bugs fixed
[lichviet-widget] / qmlapplicationviewer / qmlapplicationviewer.pri
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.
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 # 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.
25
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)
33     export($$itemsources)
34     export($$itempath)
35     DEPLOYMENT += $$item
36 }
37
38 MAINPROFILEPWD = $$PWD
39
40 symbian {
41     isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
42     isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
43 } else:win32 {
44     copyCommand =
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\"
55             } else {
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\"
60             }
61         }
62     }
63     !isEmpty(copyCommand) {
64         copyCommand = @echo Copying application data... && $$copyCommand
65         copydeploymentfolders.commands = $$copyCommand
66         first.depends = $(first) copydeploymentfolders
67         export(first.depends)
68         export(copydeploymentfolders.commands)
69         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
70     }
71 } else:unix {
72     maemo5 {
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
83         copyCommand =
84         for(deploymentfolder, DEPLOYMENTFOLDERS) {
85             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
86             source = $$replace(source, \\\\, /)
87             macx {
88                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
89             } else {
90                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
91             }
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\"
99             }
100         }
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
108         }
109     }
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)
117         export($$itemfiles)
118         export($$itempath)
119         INSTALLS += $$item
120     }
121
122     !isEmpty(desktopfile.path) {
123         export(icon.files)
124         export(icon.path)
125         export(desktopfile.files)
126         export(desktopfile.path)
127         INSTALLS += icon desktopfile
128     }
129
130     target.path = $${installPrefix}/bin
131     export(target.path)
132     INSTALLS += target
133 }
134
135 export (ICON)
136 export (INSTALLS)
137 export (DEPLOYMENT)
138 export (TARGET.EPOCHEAPSIZE)
139 export (TARGET.CAPABILITY)
140 export (LIBS)
141 export (QMAKE_EXTRA_TARGETS)
142 }