Added global controller andalso filebrowser qml
[lichviet] / qmlapplicationviewer / qmlapplicationviewer.pri
1 # checksum 0x8396 version 0x3000a
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 defineTest(minQtVersion) {
15     maj = $$1
16     min = $$2
17     patch = $$3
18     isEqual(QT_MAJOR_VERSION, $$maj) {
19         isEqual(QT_MINOR_VERSION, $$min) {
20             isEqual(QT_PATCH_VERSION, $$patch) {
21                 return(true)
22             }
23             greaterThan(QT_PATCH_VERSION, $$patch) {
24                 return(true)
25             }
26         }
27         greaterThan(QT_MINOR_VERSION, $$min) {
28             return(true)
29         }
30     }
31     return(false)
32 }
33
34 contains(DEFINES, QMLJSDEBUGGER) {
35     CONFIG(debug, debug|release) {
36         !minQtVersion(4, 7, 1) {
37             warning()
38             warning("Disabling QML debugging:")
39             warning()
40             warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
41             warning("This library requires Qt 4.7.1 or newer.")
42             warning()
43             DEFINES -= QMLJSDEBUGGER
44         } else:isEmpty(QMLJSDEBUGGER_PATH) {
45             warning()
46             warning("Disabling QML debugging:")
47             warning()
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")
51             warning()
52             DEFINES -= QMLJSDEBUGGER
53         } else {
54             include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
55         }
56     } else {
57         DEFINES -= QMLJSDEBUGGER
58     }
59 }
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.
65
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)
73     export($$itemsources)
74     export($$itempath)
75     DEPLOYMENT += $$item
76 }
77
78 MAINPROFILEPWD = $$PWD
79
80 symbian {
81     isEmpty(ICON):exists($${TARGET}.svg):ICON = $${TARGET}.svg
82     isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
83 } else:win32 {
84     copyCommand =
85     for(deploymentfolder, DEPLOYMENTFOLDERS) {
86         source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
87         source = $$replace(source, /, \\)
88         sourcePathSegments = $$split(source, \\)
89         target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments)
90         target = $$replace(target, /, \\)
91         !isEqual(source,$$target) {
92             !isEmpty(copyCommand):copyCommand += &&
93             copyCommand += $(COPY_DIR) \"$$source\" \"$$target\"
94         }
95     }
96     !isEmpty(copyCommand) {
97         copyCommand = @echo Copying application data... && $$copyCommand
98         copydeploymentfolders.commands = $$copyCommand
99         first.depends = $(first) copydeploymentfolders
100         export(first.depends)
101         export(copydeploymentfolders.commands)
102         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
103     }
104 } else:unix {
105     maemo5 {
106         installPrefix = /opt/usr
107         desktopfile.path = /usr/share/applications/hildon
108     } else {
109         installPrefix = /usr/local
110         desktopfile.path = /usr/share/applications
111         copyCommand =
112         for(deploymentfolder, DEPLOYMENTFOLDERS) {
113             source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source)
114             source = $$replace(source, \\, /)
115             macx {
116                 target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
117             } else {
118                 target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
119             }
120             target = $$replace(target, \\, /)
121             sourcePathSegments = $$split(source, /)
122             targetFullPath = $$target/$$last(sourcePathSegments)
123             !isEqual(source,$$targetFullPath) {
124                 !isEmpty(copyCommand):copyCommand += &&
125                 copyCommand += $(MKDIR) \"$$target\"
126                 copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\"
127             }
128         }
129         !isEmpty(copyCommand) {
130             copyCommand = @echo Copying application data... && $$copyCommand
131             copydeploymentfolders.commands = $$copyCommand
132             first.depends = $(first) copydeploymentfolders
133             export(first.depends)
134             export(copydeploymentfolders.commands)
135             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
136         }
137     }
138     for(deploymentfolder, DEPLOYMENTFOLDERS) {
139         item = item$${deploymentfolder}
140         itemfiles = $${item}.files
141         $$itemfiles = $$eval($${deploymentfolder}.source)
142         itempath = $${item}.path
143         $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
144         export($$itemfiles)
145         export($$itempath)
146         INSTALLS += $$item
147     }
148     icon.files = $${TARGET}.png
149     icon.path = /usr/share/icons/hicolor/64x64/apps
150     desktopfile.files = $${TARGET}.desktop
151     target.path = $${installPrefix}/bin
152     export(icon.files)
153     export(icon.path)
154     export(desktopfile.files)
155     export(desktopfile.path)
156     export(target.path)
157     INSTALLS += desktopfile icon target
158 }
159
160 export (ICON)
161 export (INSTALLS)
162 export (DEPLOYMENT)
163 export (TARGET.EPOCHEAPSIZE)
164 export (TARGET.CAPABILITY)
165 export (LIBS)
166 export (QMAKE_EXTRA_TARGETS)
167 }