sync repo
[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 #/home/kate/necessitas/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
28 }
29
30
31 SUBDIRS += $${AR_DRONE_SDK}
32
33 ios {
34     message("Compiling for IOS")
35     DEFINES+=QT_IOS
36 }
37
38 system(pkg-config --exists QtSensors){
39     message("I have QtSensors")
40     DEFINES+=QT_SENSORS
41 }
42
43 message("QMAKESPEC is:")
44 message($$QMAKESPEC)
45
46 SOURCES += main.cpp\
47     dronelib/dronecontrol.cpp \
48     dronelib/navdata.cpp \
49     dronelib/video.cpp \
50     gauges/gauge.cpp \
51     gauges/gaugelabel.cpp \
52     gauges/gaugetape.cpp \
53     gauges/gaugehorizon.cpp \
54     dronelib/joystick.cpp \
55     qdeclarativetoucharea.cpp \
56     gauges/gaugearc.cpp \
57     uilistelement.cpp \
58     gauges/gaugehsi.cpp \
59     gauges/gaugeplugin.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){
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
170 unix:!symbian {
171     maemo5 {
172         target.path = /opt/usr/bin
173     } else {
174         target.path = /usr/local/bin
175     }
176     INSTALLS += target
177 }
178
179 unix:!symbian {
180     desktopfile.files = $${TARGET}.desktop
181     maemo5 {
182         desktopfile.path = /usr/share/applications/hildon
183         icon64.path = /usr/share/icons/hicolor/64x64/apps
184         icon64.files = $${TARGET}.png
185         INSTALLS += icon64
186     } else {
187         desktopfile.path = /usr/share/applications
188     }
189     INSTALLS += desktopfile
190 }
191
192 RESOURCES += \
193     ardrone.qrc
194
195 ios:include($$[QMAKE_MKSPECS]/common/ios/qiosapp.conf)
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224