1c0c7edb39631e713891388f1c36c572582726a2
[profile/ivi/qtdeclarative.git] / examples / declarative / touchinteraction / gestures / experimental-gestures / qmlapplicationviewer / qmlapplicationviewer.pri
1 # checksum 0x3dc8 version 0x2000a
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     ICON = $${TARGET}.svg
82     TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
83     contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone
84     contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices
85 } else:win32 {
86     !isEqual(PWD,$$OUT_PWD) {
87         copyCommand = @echo Copying application data...
88         for(deploymentfolder, DEPLOYMENTFOLDERS) {
89             source = $$eval($${deploymentfolder}.source)
90             pathSegments = $$split(source, /)
91             sourceAndTarget = $$MAINPROFILEPWD/$$source $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(pathSegments)
92             copyCommand += && $(COPY_DIR) $$replace(sourceAndTarget, /, \\)
93         }
94         copydeploymentfolders.commands = $$copyCommand
95         first.depends = $(first) copydeploymentfolders
96         export(first.depends)
97         export(copydeploymentfolders.commands)
98         QMAKE_EXTRA_TARGETS += first copydeploymentfolders
99     }
100 } else:unix {
101     maemo5 {
102         installPrefix = /opt/usr
103         desktopfile.path = /usr/share/applications/hildon       
104     } else {
105         installPrefix = /usr/local
106         desktopfile.path = /usr/share/applications
107         !isEqual(PWD,$$OUT_PWD) {
108             copyCommand = @echo Copying application data...
109             for(deploymentfolder, DEPLOYMENTFOLDERS) {
110                 macx {
111                     target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target)
112                 } else {
113                     target = $$OUT_PWD/$$eval($${deploymentfolder}.target)
114                 }
115                 copyCommand += && $(MKDIR) $$target
116                 copyCommand += && $(COPY_DIR) $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) $$target
117             }
118             copydeploymentfolders.commands = $$copyCommand
119             first.depends = $(first) copydeploymentfolders
120             export(first.depends)
121             export(copydeploymentfolders.commands)
122             QMAKE_EXTRA_TARGETS += first copydeploymentfolders
123         }
124     }
125     for(deploymentfolder, DEPLOYMENTFOLDERS) {
126         item = item$${deploymentfolder}
127         itemfiles = $${item}.files
128         $$itemfiles = $$eval($${deploymentfolder}.source)
129         itempath = $${item}.path
130         $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target)
131         export($$itemfiles)
132         export($$itempath)
133         INSTALLS += $$item
134     }
135     icon.files = $${TARGET}.png
136     icon.path = /usr/share/icons/hicolor/64x64/apps
137     desktopfile.files = $${TARGET}.desktop
138     target.path = $${installPrefix}/bin
139     export(icon.files)
140     export(icon.path)
141     export(desktopfile.files)
142     export(desktopfile.path)
143     export(target.path)
144     INSTALLS += desktopfile icon target
145 }
146
147 export (ICON)
148 export (INSTALLS)
149 export (DEPLOYMENT)
150 export (TARGET.EPOCHEAPSIZE)
151 export (TARGET.CAPABILITY)
152 export (LIBS)
153 export (QMAKE_EXTRA_TARGETS)
154 }