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