6 changed files with 197 additions and 183 deletions
Binary file not shown.
@ -1,166 +1,163 @@ |
|||||||
#------------------------------------------------- |
#------------------------------------------------- |
||||||
# |
# |
||||||
# MAVGround - Micro Air Vehicle Groundstation |
# MAVGround - Micro Air Vehicle Groundstation |
||||||
# |
# |
||||||
# Please see our website at <http://pixhawk.ethz.ch> |
# Please see our website at <http://pixhawk.ethz.ch> |
||||||
# |
# |
||||||
# Original Author: |
# Original Author: |
||||||
# Lorenz Meier <mavteam@student.ethz.ch> |
# Lorenz Meier <mavteam@student.ethz.ch> |
||||||
# |
# |
||||||
# Contributing Authors (in alphabetical order): |
# Contributing Authors (in alphabetical order): |
||||||
# |
# |
||||||
# (c) 2009 PIXHAWK Team |
# (c) 2009 PIXHAWK Team |
||||||
# |
# |
||||||
# This file is part of the mav groundstation project |
# This file is part of the mav groundstation project |
||||||
# MAVGround is free software: you can redistribute it and/or modify |
# MAVGround is free software: you can redistribute it and/or modify |
||||||
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
||||||
# the Free Software Foundation, either version 3 of the License, or |
# the Free Software Foundation, either version 3 of the License, or |
||||||
# (at your option) any later version. |
# (at your option) any later version. |
||||||
# MAVGround is distributed in the hope that it will be useful, |
# MAVGround is distributed in the hope that it will be useful, |
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
# GNU General Public License for more details. |
# GNU General Public License for more details. |
||||||
# You should have received a copy of the GNU General Public License |
# You should have received a copy of the GNU General Public License |
||||||
# along with MAVGround. If not, see <http://www.gnu.org/licenses/>. |
# along with MAVGround. If not, see <http://www.gnu.org/licenses/>. |
||||||
# |
# |
||||||
#------------------------------------------------- |
#------------------------------------------------- |
||||||
|
|
||||||
QT += network opengl svg xml |
QT += network opengl svg xml |
||||||
|
|
||||||
TEMPLATE = app |
TEMPLATE = app |
||||||
TARGET = opengroundcontrol |
TARGET = opengroundcontrol |
||||||
|
|
||||||
BASEDIR = . |
BASEDIR = . |
||||||
BUILDDIR = build |
BUILDDIR = build |
||||||
LANGUAGE = C++ |
LANGUAGE = C++ |
||||||
|
|
||||||
#CONFIG += static debug |
#CONFIG += static debug |
||||||
#CONFIG += static release console |
#CONFIG += static release console |
||||||
CONFIG += static debug_and_release console |
CONFIG += static debug_and_release console |
||||||
QMAKE_CFLAGS += -j8 |
QMAKE_CFLAGS += -j8 |
||||||
|
|
||||||
OBJECTS_DIR = $$BUILDDIR/obj |
OBJECTS_DIR = $$BUILDDIR/obj |
||||||
MOC_DIR = $$BUILDDIR/moc |
MOC_DIR = $$BUILDDIR/moc |
||||||
UI_HEADERS_DIR = src/ui/generated |
UI_HEADERS_DIR = src/ui/generated |
||||||
|
|
||||||
|
|
||||||
# Add external libraries |
# Add external libraries |
||||||
INCLUDEPATH += $$BASEDIR/lib/flite/include \ |
INCLUDEPATH += $$BASEDIR/lib/flite/include \ |
||||||
$$BASEDIR/lib/flite/lang |
$$BASEDIR/lib/flite/lang |
||||||
|
|
||||||
#$$BASEDIR/lib/qextserialport/include |
#$$BASEDIR/lib/qextserialport/include |
||||||
# $$BASEDIR/lib/openjaus/libjaus/include \ |
# $$BASEDIR/lib/openjaus/libjaus/include \ |
||||||
# $$BASEDIR/lib/openjaus/libopenJaus/include |
# $$BASEDIR/lib/openjaus/libopenJaus/include |
||||||
|
|
||||||
message(Qt version> $$[QMAKESPEC]) |
message(Qt version $$[QT_VERSION]) |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# MAC OS X |
# MAC OS X |
||||||
macx { |
macx { |
||||||
|
message(Building for Mac OS X) |
||||||
message(Building for Mac OS X) |
|
||||||
|
CONFIG += x86_64 |
||||||
CONFIG += x86_64 cocoa |
CONFIG -= x86 static |
||||||
CONFIG -= static |
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 |
||||||
DESTDIR = $$BASEDIR/bin/mac |
|
||||||
INCLUDEPATH += -framework SDL \ |
DESTDIR = $$BASEDIR/bin/mac |
||||||
/Users/hugo/Projects/PixHawkGroundControl/MAVLink/src |
INCLUDEPATH += -framework SDL \ |
||||||
|
$$BASEDIR/MAVLink/src |
||||||
LIBS += -framework IOKit \ |
|
||||||
-framework SDL \ |
LIBS += -framework IOKit \ |
||||||
-framework CoreFoundation \ |
-framework SDL \ |
||||||
-framework ApplicationServices \ |
-framework CoreFoundation \ |
||||||
-lm |
-framework ApplicationServices \ |
||||||
|
-lm |
||||||
DEFINES += _TTY_POSIX_ |
|
||||||
|
DEFINES += _TTY_POSIX_ |
||||||
#ICON = $$BASEDIR/img/icons/empty.png |
|
||||||
} |
ICON = $$BASEDIR/images/icons/macx.icns |
||||||
|
} |
||||||
# GNU/Linux |
|
||||||
linux-g++ { |
# GNU/Linux |
||||||
|
linux-g++ { |
||||||
message(Building for GNU/Linux) |
|
||||||
|
message(Building for GNU/Linux) |
||||||
QT += phonon |
|
||||||
|
QT += phonon |
||||||
debug { |
|
||||||
DESTDIR = $$BASEDIR |
debug { |
||||||
} |
DESTDIR = $$BASEDIR |
||||||
|
} |
||||||
release { |
|
||||||
DESTDIR = $$BASEDIR |
release { |
||||||
} |
DESTDIR = $$BASEDIR |
||||||
INCLUDEPATH += /usr/include/SDL |
} |
||||||
# /usr/include/qwt-qt4 |
INCLUDEPATH += /usr/include/SDL |
||||||
|
|
||||||
#-L$$BASEDIR/lib/qwt/linux \ |
DEFINES += _TTY_POSIX_ |
||||||
|
|
||||||
|
HARDWARE_PLATFORM = $$system(uname -a) |
||||||
DEFINES += _TTY_POSIX_ |
contains( HARDWARE_PLATFORM, x86_64 ) { |
||||||
|
# 64-bit Linux |
||||||
HARDWARE_PLATFORM = $$system(uname -a) |
LIBS += \ |
||||||
contains( HARDWARE_PLATFORM, x86_64 ) { |
-L$$BASEDIR/lib/flite/linux64 \ |
||||||
# 64-bit Linux |
-lm \ |
||||||
LIBS += \ |
-lflite_cmu_us_awb \ |
||||||
-L$$BASEDIR/lib/flite/linux64 \ |
-lflite_cmu_us_rms \ |
||||||
-lm \ |
-lflite_cmu_us_slt \ |
||||||
-lflite_cmu_us_awb \ |
-lflite_usenglish \ |
||||||
-lflite_cmu_us_rms \ |
-lflite_cmulex \ |
||||||
-lflite_cmu_us_slt \ |
-lflite \ |
||||||
-lflite_usenglish \ |
-lSDL \ |
||||||
-lflite_cmulex \ |
-lSDLmain |
||||||
-lflite \ |
} else { |
||||||
-lSDL \ |
# 32-bit Linux |
||||||
-lSDLmain |
LIBS += \ |
||||||
} else { |
-L$$BASEDIR/lib/flite/linux32 \ |
||||||
# 32-bit Linux |
-lm \ |
||||||
LIBS += \ |
-lflite_cmu_us_awb \ |
||||||
-L$$BASEDIR/lib/flite/linux32 \ |
-lflite_cmu_us_rms \ |
||||||
-lm \ |
-lflite_cmu_us_slt \ |
||||||
-lflite_cmu_us_awb \ |
-lflite_usenglish \ |
||||||
-lflite_cmu_us_rms \ |
-lflite_cmulex \ |
||||||
-lflite_cmu_us_slt \ |
-lflite \ |
||||||
-lflite_usenglish \ |
-lSDL \ |
||||||
-lflite_cmulex \ |
-lSDLmain |
||||||
-lflite \ |
} |
||||||
-lSDL \ |
} |
||||||
-lSDLmain |
|
||||||
} |
|
||||||
} |
# Windows (32bit) |
||||||
|
win32 { |
||||||
|
|
||||||
# Windows (32bit) |
message(Building for Windows Platform (32/64bit)) |
||||||
win32 { |
|
||||||
|
# Special settings for debug |
||||||
message(Building for Windows Platform (32/64bit)) |
#CONFIG += CONSOLE |
||||||
|
LIBS += -L$$BASEDIR\lib\sdl\win32 \ |
||||||
# Special settings for debug |
-lmingw32 -lSDLmain -lSDL -mwindows |
||||||
#CONFIG += CONSOLE |
|
||||||
LIBS += -L$$BASEDIR\lib\sdl\win32 \ |
INCLUDEPATH += $$BASEDIR/lib/sdl/include/SDL |
||||||
-lmingw32 -lSDLmain -lSDL -mwindows |
|
||||||
|
#LIBS += -L$$BASEDIR\lib\qextserialport\win32 \ |
||||||
INCLUDEPATH += $$BASEDIR/lib/sdl/include/SDL |
# -lqextserialport \ |
||||||
|
# -lsetupapi |
||||||
#LIBS += -L$$BASEDIR\lib\qextserialport\win32 \ |
# -L$$BASEDIR/lib/openjaus/libjaus/lib/win32 \ |
||||||
# -lqextserialport \ |
# -ljaus \ |
||||||
# -lsetupapi |
# -L$$BASEDIR/lib/openjaus/libopenJaus/lib/win32 \ |
||||||
# -L$$BASEDIR/lib/openjaus/libjaus/lib/win32 \ |
# -lopenjaus |
||||||
# -ljaus \ |
|
||||||
# -L$$BASEDIR/lib/openjaus/libopenJaus/lib/win32 \ |
DEFINES += _TTY_WIN_ |
||||||
# -lopenjaus |
|
||||||
|
debug { |
||||||
DEFINES += _TTY_WIN_ |
DESTDIR = $$BASEDIR/bin |
||||||
|
} |
||||||
debug { |
|
||||||
DESTDIR = $$BASEDIR/bin |
release { |
||||||
} |
DESTDIR = $$BASEDIR/bin |
||||||
|
} |
||||||
release { |
|
||||||
DESTDIR = $$BASEDIR/bin |
} |
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
|
Loading…
Reference in new issue