Ui selection code improved
[mardrone] / mardrone / mardrone.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-10-12T20:45:34
4 #
5 #-------------------------------------------------
6
7 QT       += core gui declarative network
8
9 CONFIG += mobility link_pkgconfig
10 MOBILITY += sensors
11 TARGET = mardrone
12 TEMPLATE = app
13 AR_DRONE_SDK = ARDrone_SDK_Version_1_8_20110726
14 unix:!mac:!ios:!android: LIBS += -Lardrone-lib-x86 -lvlib -lsdk
15 !isEmpty(MEEGO_VERSION_MAJOR): LIBS += -L../mardrone/ardrone-lib-arm -lvlib -lsdk
16
17 # for Mac OSX
18 macx:!ios {
19 message("Compiling for Mac OSx")
20 LIBS += -L../mardrone/ardrone-lib-osx -lvlib
21 LIBS += -framework SDL
22 DEFINES+=HAVE_SDL
23 }
24 #For Android
25 android {
26  LIBS += -L../mardrone/ardrone-lib-android -lvlib -lsdk
27 # If you got cannot locate '__aeabi_f2uiz'..., uncomment following and point libgcc.a
28  LIBS += ~/necessitas/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
29 }
30
31
32 SUBDIRS += $${AR_DRONE_SDK}
33
34 ios {
35     message("Compiling for IOS")
36     DEFINES+=QT_IOS
37 }
38
39 system(pkg-config --exists QtSensors){
40     message("I have QtSensors")
41     DEFINES+=QT_SENSORS
42 }
43
44 message("QMAKESPEC is:")
45 message($$QMAKESPEC)
46
47 SOURCES += main.cpp\
48     dronelib/dronecontrol.cpp \
49     dronelib/navdata.cpp \
50     dronelib/video.cpp \
51     gauges/gauge.cpp \
52     gauges/gaugelabel.cpp \
53     gauges/gaugetape.cpp \
54     gauges/gaugehorizon.cpp \
55     dronelib/joystick.cpp \
56     qdeclarativetoucharea.cpp \
57     gauges/gaugearc.cpp \
58     uilistelement.cpp \
59     gauges/gaugehsi.cpp
60
61 INCLUDEPATH += dronelib \
62                gauges \
63                $${AR_DRONE_SDK}/ARDroneLib/Soft/Common \
64                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK \
65                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os/linux \
66                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os \
67                $${AR_DRONE_SDK}/ARDroneLib/Soft/Lib \
68                $${AR_DRONE_SDK}/ARDroneLib/VLIB \
69                $${AR_DRONE_SDK}/ARDroneLib
70
71 HEADERS  +=  dronelib/dronecontrol.h \
72     dronelib/navdata.h \
73     dronelib/video.h \
74     gauges/gauge.h \
75     gauges/gaugelabel.h \
76     gauges/gaugetape.h \
77     gauges/gaugehorizon.h \
78     dronelib/joystick.h \
79     qdeclarativetoucharea.h \
80     gauges/gaugearc.h \
81     uilistelement.h \
82     gauges/gaugehsi.h
83
84 system(pkg-config --exists sdl):!android{
85     message("I have sdl")
86     DEFINES+=HAVE_SDL
87     SOURCES +=
88     HEADERS +=
89     LIBS+=-lSDL
90 }
91
92
93 OTHER_FILES += \
94     JoyStick2.qml \
95     debian/changelog \
96     debian/compat \
97     debian/control \
98     debian/copyright \
99     debian/README \
100     debian/rules \
101     ardrone1.desktop \
102     BarGauge.qml \
103     ConfigDialog.qml \
104     ardrone_harmattan.qml \
105     ardrone_desktop.qml \
106     ConfigDialogDesktop.qml \
107     gauges/AltGauge.qml \
108     gauges/alt2.png \
109     gauges/needle1.png \
110     gauges/needle2.png \
111     gauges/EfisPFD.qml \
112     gauges/qmldir.txt \
113     dronelib/JoyStickCalibrator.qml \
114     dronelib/JoyStickIndicator.qml \
115     CalibrateDialog.qml \
116     JoyStickCalibrator.qml \
117     JoyStickIndicator.qml \
118     JoyStickTouch.qml \
119     gauges/qmldir \
120     qtc_packaging/debian_harmattan/rules \
121     qtc_packaging/debian_harmattan/README \
122     qtc_packaging/debian_harmattan/manifest.aegis \
123     qtc_packaging/debian_harmattan/copyright \
124     qtc_packaging/debian_harmattan/control \
125     qtc_packaging/debian_harmattan/compat \
126     qtc_packaging/debian_harmattan/changelog \
127     gauges/AttitudeGauge.qml \
128     CalibrateDialogDesktop.qml \
129     JoyStickCalibratorDesktop.qml \
130     ardrone_symbian.qml \
131     ConfigDialogSymbian.qml \
132     gauges/GenericGauge.qml \
133     gauges/HeadingGauge.qml \
134     ardrone_plainqml.qml \
135     gauges/gauges.pro \
136     android/AndroidManifest.xml \
137     android/res/drawable/icon.png \
138     android/res/drawable/logo.png \
139     android/res/drawable-hdpi/icon.png \
140     android/res/drawable-ldpi/icon.png \
141     android/res/drawable-mdpi/icon.png \
142     android/res/layout/splash.xml \
143     android/res/values/libs.xml \
144     android/res/values/strings.xml \
145     android/res/values-de/strings.xml \
146     android/res/values-el/strings.xml \
147     android/res/values-es/strings.xml \
148     android/res/values-et/strings.xml \
149     android/res/values-fa/strings.xml \
150     android/res/values-fr/strings.xml \
151     android/res/values-id/strings.xml \
152     android/res/values-it/strings.xml \
153     android/res/values-ja/strings.xml \
154     android/res/values-ms/strings.xml \
155     android/res/values-nb/strings.xml \
156     android/res/values-nl/strings.xml \
157     android/res/values-pl/strings.xml \
158     android/res/values-pt-rBR/strings.xml \
159     android/res/values-ro/strings.xml \
160     android/res/values-rs/strings.xml \
161     android/res/values-ru/strings.xml \
162     android/res/values-zh-rCN/strings.xml \
163     android/res/values-zh-rTW/strings.xml \
164     android/src/org/kde/necessitas/ministro/IMinistro.aidl \
165     android/src/org/kde/necessitas/ministro/IMinistroCallback.aidl \
166     android/src/org/kde/necessitas/origo/QtActivity.java \
167     android/src/org/kde/necessitas/origo/QtApplication.java \
168     android/version.xml \
169     android/res/drawable-ldpi/icon.png \
170     android/res/drawable-mdpi/icon.png \
171     android/res/drawable-hdpi/icon.png \
172     android/res/drawable/icon.png \
173     android/res/drawable/logo.png \
174     android/res/values/libs.xml \
175     android/res/values/strings.xml \
176     android/res/layout/splash.xml \
177     android/res/values-et/strings.xml \
178     android/res/values-zh-rCN/strings.xml \
179     android/res/values-zh-rTW/strings.xml \
180     android/res/values-es/strings.xml \
181     android/res/values-nb/strings.xml \
182     android/res/values-ms/strings.xml \
183     android/res/values-it/strings.xml \
184     android/res/values-pl/strings.xml \
185     android/res/values-id/strings.xml \
186     android/res/values-pt-rBR/strings.xml \
187     android/res/values-rs/strings.xml \
188     android/res/values-fr/strings.xml \
189     android/res/values-ro/strings.xml \
190     android/res/values-nl/strings.xml \
191     android/res/values-de/strings.xml \
192     android/res/values-ja/strings.xml \
193     android/res/values-ru/strings.xml \
194     android/res/values-fa/strings.xml \
195     android/res/values-el/strings.xml \
196     android/src/org/kde/necessitas/origo/QtActivity.java \
197     android/src/org/kde/necessitas/origo/QtApplication.java \
198     android/src/org/kde/necessitas/ministro/IMinistro.aidl \
199     android/src/org/kde/necessitas/ministro/IMinistroCallback.aidl \
200     android/AndroidManifest.xml \
201     deploy.pri \
202     android/version.xml
203
204 unix:!symbian:!android {
205     maemo5 {
206         target.path = /opt/usr/bin
207     } else {
208         target.path = /usr/local/bin
209     }
210     INSTALLS += target
211 }
212
213 unix:!symbian:!android {
214     desktopfile.files = $${TARGET}.desktop
215     maemo5 {
216         desktopfile.path = /usr/share/applications/hildon
217         icon64.path = /usr/share/icons/hicolor/64x64/apps
218         icon64.files = $${TARGET}.png
219         INSTALLS += icon64
220     } else {
221         desktopfile.path = /usr/share/applications
222     }
223     INSTALLS += desktopfile
224 }
225
226 RESOURCES += \
227     ardrone.qrc
228
229 # Add more folders to ship with the application, here
230 #folder_01.source = qml/meegocomponents1
231 #folder_01.target = qml
232 android {
233 qtcomponents.source = imports
234 qtcomponents.target =
235 themes.source = themes
236 themes.target =
237 DEPLOYMENTFOLDERS = qtcomponents themes
238
239 qmlplugins.files = plugins/libmeegoplugin.so
240 qmlplugins.files += plugins/libmeegoextrasplugin.so
241 qmlplugins.files += plugins/libqtcomponentsplugin_1_1.so
242 qmlplugins.path = /libs/armeabi
243
244 INSTALLS += qmlplugins
245 }
246
247 # Please do not modify the following two lines. Required for deployment.
248 include(deploy.pri)
249 qtcAddDeployment()
250
251 ios:include($$[QMAKE_MKSPECS]/common/ios/qiosapp.conf)
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283