sync repository
[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 #LIBS += -Lardrone-lib-x86 -lvlib -lsdk
15 #LIBS += -L../mardrone/ardrone-lib-arm -lvlib -lsdk
16
17 #For Android
18 macx {
19 message("Compiling for Mac OSx")
20 LIBS += -L../mardrone/ardrone-lib-osx -lvlib
21 LIBS += -framework SDL
22 DEFINES+=HAVE_SDL
23 }
24 android {
25  LIBS += -L../mardrone/ardrone-lib-android -lvlib -lsdk  /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
26 }
27 SUBDIRS += $${AR_DRONE_SDK}
28
29 system(pkg-config --exists QtSensors){
30     message("I have QtSensors")
31     DEFINES+=QT_SENSORS
32 }
33
34 message("QMAKESPEC is:")
35 message($$QMAKESPEC)
36
37 SOURCES += main.cpp\
38     dronelib/dronecontrol.cpp \
39     dronelib/navdata.cpp \
40     dronelib/video.cpp \
41     gauges/gauge.cpp \
42     gauges/gaugelabel.cpp \
43     gauges/gaugetape.cpp \
44     gauges/gaugehorizon.cpp \
45     dronelib/joystick.cpp \
46     qdeclarativetoucharea.cpp
47
48 INCLUDEPATH += dronelib \
49                gauges \
50                $${AR_DRONE_SDK}/ARDroneLib/Soft/Common \
51                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK \
52                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os/linux \
53                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os \
54                $${AR_DRONE_SDK}/ARDroneLib/Soft/Lib \
55                $${AR_DRONE_SDK}/ARDroneLib/VLIB \
56                $${AR_DRONE_SDK}/ARDroneLib
57
58 HEADERS  +=  dronelib/dronecontrol.h \
59     dronelib/navdata.h \
60     dronelib/video.h \
61     gauges/gauge.h \
62     gauges/gaugelabel.h \
63     gauges/gaugetape.h \
64     gauges/gaugehorizon.h \
65     dronelib/joystick.h \
66     qdeclarativetoucharea.h
67
68 system(pkg-config --exists sdl){
69     message("I have sdl")
70     DEFINES+=HAVE_SDL
71     SOURCES +=
72     HEADERS +=
73     LIBS+=-lSDL
74 }
75
76
77 OTHER_FILES += \
78     JoyStick2.qml \
79     debian/changelog \
80     debian/compat \
81     debian/control \
82     debian/copyright \
83     debian/README \
84     debian/rules \
85     ardrone1.desktop \
86     BarGauge.qml \
87     ConfigDialog.qml \
88     ardrone_harmattan.qml \
89     ardrone_desktop.qml \
90     ConfigDialogDesktop.qml \
91     gauges/AltGauge.qml \
92     gauges/alt2.png \
93     gauges/needle1.png \
94     gauges/needle2.png \
95     gauges/EfisPFD.qml \
96     gauges/qmldir.txt \
97     dronelib/JoyStickCalibrator.qml \
98     dronelib/JoyStickIndicator.qml \
99     CalibrateDialog.qml \
100     JoyStickCalibrator.qml \
101     JoyStickIndicator.qml \
102     JoyStickTouch.qml \
103     gauges/qmldir \
104     qtc_packaging/debian_harmattan/rules \
105     qtc_packaging/debian_harmattan/README \
106     qtc_packaging/debian_harmattan/manifest.aegis \
107     qtc_packaging/debian_harmattan/copyright \
108     qtc_packaging/debian_harmattan/control \
109     qtc_packaging/debian_harmattan/compat \
110     qtc_packaging/debian_harmattan/changelog \
111     gauges/AttitudeGauge.qml \
112     CalibrateDialogDesktop.qml \
113     JoyStickCalibratorDesktop.qml \
114     ardrone_symbian.qml \
115     ConfigDialogSymbian.qml \
116     gauges/GenericGauge.qml \
117     gauges/HeadingGauge.qml
118
119 unix:!symbian {
120     maemo5 {
121         target.path = /opt/usr/bin
122     } else {
123         target.path = /usr/local/bin
124     }
125     INSTALLS += target
126 }
127
128 unix:!symbian {
129     desktopfile.files = $${TARGET}.desktop
130     maemo5 {
131         desktopfile.path = /usr/share/applications/hildon
132         icon64.path = /usr/share/icons/hicolor/64x64/apps
133         icon64.files = $${TARGET}.png
134         INSTALLS += icon64
135     } else {
136         desktopfile.path = /usr/share/applications
137     }
138     INSTALLS += desktopfile
139 }
140
141 RESOURCES += \
142     ardrone.qrc
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174