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