b07f8736ba0333ce3ca7b6884a854ee5fe8c8b0f
[lichviet-widget] / qmlapplicationviewer / qmlapplicationviewer.pri
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.
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.path = /usr/share/applications/hildon
74     } else {
75         desktopfile.path = /usr/share/applications
76         copyCommand =
77         for(deploymentfolder, DEPLOYMENTFOLDERS) {
78             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
79             source = $$replace(source, \\\\, /)
80             macx {
81                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
82             } else {
83                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
84             }
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\"
92             }
93         }
94         !isEmpty(copyCommand) {
95             copyCommand = @echo Copying application data... && $$copyCommand
96             copydeploymentfolders.commands = $$copyCommand
97             first.depends = $(first) copydeploymentfolders
98             export(first.depends)
99             export(copydeploymentfolders.commands)
100             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
101         }
102     }
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)
110         export($$itemfiles)
111         export($$itempath)
112         INSTALLS += $$item
113     }
114     icon.files = $${TARGET}.png
115     icon.path = /usr/share/icons/hicolor/64x64/apps
116     desktopfile.files = $${TARGET}.desktop
117     target.path = $${installPrefix}/bin
118     export(icon.files)
119     export(icon.path)
120     export(desktopfile.files)
121     export(desktopfile.path)
122     export(target.path)
123     INSTALLS += desktopfile icon target
124 }
125
126 export (ICON)
127 export (INSTALLS)
128 export (DEPLOYMENT)
129 export (TARGET.EPOCHEAPSIZE)
130 export (TARGET.CAPABILITY)
131 export (LIBS)
132 export (QMAKE_EXTRA_TARGETS)
133 }