Cync
[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
206 unix:!symbian:!android {
207     maemo5 {
208         target.path = /opt/usr/bin
209     } else {
210         target.path = /usr/local/bin
211     }
212     INSTALLS += target
213 }
214
215 unix:!symbian:!android {
216     desktopfile.files = $${TARGET}.desktop
217     maemo5 {
218         desktopfile.path = /usr/share/applications/hildon
219         icon64.path = /usr/share/icons/hicolor/64x64/apps
220         icon64.files = $${TARGET}.png
221         INSTALLS += icon64
222     } else {
223         desktopfile.path = /usr/share/applications
224     }
225     INSTALLS += desktopfile
226 }
227
228 RESOURCES += \
229     ardrone.qrc
230
231 # Add more folders to ship with the application, here
232 #folder_01.source = qml/meegocomponents1
233 #folder_01.target = qml
234 android {
235 qtcomponents.source = imports
236 qtcomponents.target =
237 themes.source = themes
238 themes.target =
239 DEPLOYMENTFOLDERS = qtcomponents themes
240
241 qmlplugins.files = plugins/libmeegoplugin.so
242 qmlplugins.files += plugins/libmeegoextrasplugin.so
243 qmlplugins.files += plugins/libqtcomponentsplugin_1_1.so
244 qmlplugins.path = /libs/armeabi
245
246 INSTALLS += qmlplugins
247 }
248
249 # Please do not modify the following two lines. Required for deployment.
250 include(deploy.pri)
251 qtcAddDeployment()
252
253 ios:include($$[QMAKE_MKSPECS]/common/ios/qiosapp.conf)
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
284
285