Sync refactoring for multiple platforms
[mardrone] / mardrone / mardrone.pro
index 84c7ae2..0ec04e0 100644 (file)
@@ -6,24 +6,48 @@
 
 QT       += core gui declarative network
 
-
-CONFIG += mobility
+CONFIG += mobility link_pkgconfig
 MOBILITY += sensors
 TARGET = mardrone
 TEMPLATE = app
-AR_DRONE_SDK= $$(HOME)/ARDrone_SDK_1_5_Version_20101004
-LIBS +=-lQtComponents -L$${AR_DRONE_SDK}/lib -lvlib -lsdk
+AR_DRONE_SDK = ARDrone_SDK_Version_1_8_20110726
+#LIBS += -Lardrone-lib-x86 -lvlib -lsdk
+#LIBS += -L../mardrone/ardrone-lib-arm -lvlib -lsdk
+
+#For Android
+macx {
+message("Compiling for Mac OSx")
+LIBS += -L../mardrone/ardrone-lib-osx -lvlib
+LIBS += -framework SDL
+DEFINES+=HAVE_SDL
+}
+android {
+ 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
+}
+SUBDIRS += $${AR_DRONE_SDK}
+
+system(pkg-config --exists QtSensors){
+    message("I have QtSensors")
+    DEFINES+=QT_SENSORS
+}
 
+message("QMAKESPEC is:")
+message($$QMAKESPEC)
 
 SOURCES += main.cpp\
-    dronecontrol.cpp \
-    navdata.cpp \
-    video.cpp \
-    gauge.cpp \
-    gaugelabel.cpp \
-    gaugehorizon.cpp
-
-INCLUDEPATH += $${AR_DRONE_SDK}/ARDroneLib/Soft/Common \
+    dronelib/dronecontrol.cpp \
+    dronelib/navdata.cpp \
+    dronelib/video.cpp \
+    gauges/gauge.cpp \
+    gauges/gaugelabel.cpp \
+    gauges/gaugetape.cpp \
+    gauges/gaugehorizon.cpp \
+    dronelib/joystick.cpp \
+    qdeclarativetoucharea.cpp
+
+INCLUDEPATH += dronelib \
+               gauges \
+               $${AR_DRONE_SDK}/ARDroneLib/Soft/Common \
                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK \
                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os/linux \
                $${AR_DRONE_SDK}/ARDroneLib/VP_SDK/VP_Os \
@@ -31,17 +55,26 @@ INCLUDEPATH += $${AR_DRONE_SDK}/ARDroneLib/Soft/Common \
                $${AR_DRONE_SDK}/ARDroneLib/VLIB \
                $${AR_DRONE_SDK}/ARDroneLib
 
-HEADERS  +=  dronecontrol.h \
-    navdata.h \
-    video.h \
-    gauge.h \
-    gaugelabel.h \
-    gaugehorizon.h
+HEADERS  +=  dronelib/dronecontrol.h \
+    dronelib/navdata.h \
+    dronelib/video.h \
+    gauges/gauge.h \
+    gauges/gaugelabel.h \
+    gauges/gaugetape.h \
+    gauges/gaugehorizon.h \
+    dronelib/joystick.h \
+    qdeclarativetoucharea.h
+
+system(pkg-config --exists sdl){
+    message("I have sdl")
+    DEFINES+=HAVE_SDL
+    SOURCES +=
+    HEADERS +=
+    LIBS+=-lSDL
+}
 
 
 OTHER_FILES += \
-    ardrone.qml \
-    JoyStick.qml \
     JoyStick2.qml \
     debian/changelog \
     debian/compat \
@@ -51,7 +84,37 @@ OTHER_FILES += \
     debian/rules \
     ardrone1.desktop \
     BarGauge.qml \
-    ConfigDialog.qml
+    ConfigDialog.qml \
+    ardrone_harmattan.qml \
+    ardrone_desktop.qml \
+    ConfigDialogDesktop.qml \
+    gauges/AltGauge.qml \
+    gauges/alt2.png \
+    gauges/needle1.png \
+    gauges/needle2.png \
+    gauges/EfisPFD.qml \
+    gauges/qmldir.txt \
+    dronelib/JoyStickCalibrator.qml \
+    dronelib/JoyStickIndicator.qml \
+    CalibrateDialog.qml \
+    JoyStickCalibrator.qml \
+    JoyStickIndicator.qml \
+    JoyStickTouch.qml \
+    gauges/qmldir \
+    qtc_packaging/debian_harmattan/rules \
+    qtc_packaging/debian_harmattan/README \
+    qtc_packaging/debian_harmattan/manifest.aegis \
+    qtc_packaging/debian_harmattan/copyright \
+    qtc_packaging/debian_harmattan/control \
+    qtc_packaging/debian_harmattan/compat \
+    qtc_packaging/debian_harmattan/changelog \
+    gauges/AttitudeGauge.qml \
+    CalibrateDialogDesktop.qml \
+    JoyStickCalibratorDesktop.qml \
+    ardrone_symbian.qml \
+    ConfigDialogSymbian.qml \
+    gauges/GenericGauge.qml \
+    gauges/HeadingGauge.qml
 
 unix:!symbian {
     maemo5 {
@@ -77,3 +140,35 @@ unix:!symbian {
 
 RESOURCES += \
     ardrone.qrc
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+