Commit 2bb29b36 authored by Mariano Lizarraga's avatar Mariano Lizarraga

Merge branch 'dev' of git://github.com/tecnosapiens/qgroundcontrol into dev

parents 4c6bd390 1c1b5b69
#------------------------------------------------- #-------------------------------------------------
# #
# QGroundControl - Micro Air Vehicle Groundstation # QGroundControl - Micro Air Vehicle Groundstation
# #
# Please see our website at <http://qgroundcontrol.org> # Please see our website at <http://qgroundcontrol.org>
# #
# Author: # Author:
# Lorenz Meier <mavteam@student.ethz.ch> # Lorenz Meier <mavteam@student.ethz.ch>
# #
# (c) 2009-2010 PIXHAWK Team # (c) 2009-2010 PIXHAWK Team
# #
# This file is part of the mav groundstation project # This file is part of the mav groundstation project
# QGroundControl is free software: you can redistribute it and/or modify # QGroundControl 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.
# QGroundControl is distributed in the hope that it will be useful, # QGroundControl 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 QGroundControl. If not, see <http://www.gnu.org/licenses/>. # along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# #
#------------------------------------------------- #-------------------------------------------------
#$$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 $$[QT_VERSION]) message(Qt version $$[QT_VERSION])
release { release {
# DEFINES += QT_NO_DEBUG_OUTPUT # DEFINES += QT_NO_DEBUG_OUTPUT
# DEFINES += QT_NO_WARNING_OUTPUT # DEFINES += QT_NO_WARNING_OUTPUT
} }
QMAKE_POST_LINK += echo "Copying files" QMAKE_POST_LINK += echo "Copying files"
#QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/debug/. #QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/debug/.
#QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/release/. #QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/release/.
# MAC OS X # MAC OS X
macx { macx {
COMPILER_VERSION = system(gcc -v) COMPILER_VERSION = system(gcc -v)
message(Using compiler $$COMPILER_VERSION) message(Using compiler $$COMPILER_VERSION)
HARDWARE_PLATFORM = $$system(uname -a) HARDWARE_PLATFORM = $$system(uname -a)
contains( HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || contains( HARDWARE_PLATFORM, 9.9.0 ) { contains( HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || contains( HARDWARE_PLATFORM, 9.9.0 ) {
# x86 Mac OS X Leopard 10.5 and earlier # x86 Mac OS X Leopard 10.5 and earlier
CONFIG += x86 cocoa phonon CONFIG += x86 cocoa phonon
message(Building for Mac OS X 32bit/Leopard 10.5 and earlier) message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
# Enable function-profiling with the OS X saturn tool # Enable function-profiling with the OS X saturn tool
debug { debug {
#QMAKE_CXXFLAGS += -finstrument-functions #QMAKE_CXXFLAGS += -finstrument-functions
#LIBS += -lSaturn #LIBS += -lSaturn
} }
} else { } else {
# x64 Mac OS X Snow Leopard 10.6 and later # x64 Mac OS X Snow Leopard 10.6 and later
CONFIG += x86_64 cocoa CONFIG += x86_64 cocoa
CONFIG -= x86 phonon CONFIG -= x86 phonon
message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later) message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
} }
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
#DESTDIR = $$BASEDIR/bin/mac #DESTDIR = $$BASEDIR/bin/mac
INCLUDEPATH += -framework SDL INCLUDEPATH += -framework SDL
LIBS += -framework IOKit \ LIBS += -framework IOKit \
-framework SDL \ -framework SDL \
-framework CoreFoundation \ -framework CoreFoundation \
-framework ApplicationServices \ -framework ApplicationServices \
-lm -lm
ICON = $$BASEDIR/images/icons/macx.icns ICON = $$BASEDIR/images/icons/macx.icns
# Copy audio files if needed # Copy audio files if needed
QMAKE_POST_LINK += && cp -rf $$BASEDIR/audio $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/. QMAKE_POST_LINK += && cp -rf $$BASEDIR/audio $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/.
# Copy google earth starter file # Copy google earth starter file
QMAKE_POST_LINK += && cp -f $$BASEDIR/images/earth.html $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/. QMAKE_POST_LINK += && cp -f $$BASEDIR/images/earth.html $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/.
# Copy model files # Copy model files
#QMAKE_POST_LINK += && cp -f $$BASEDIR/models/*.dae $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/. #QMAKE_POST_LINK += && cp -f $$BASEDIR/models/*.dae $$TARGETDIR/qgroundcontrol.app/Contents/MacOs/.
exists(/Library/Frameworks/osg.framework):exists(/Library/Frameworks/OpenThreads.framework) { exists(/Library/Frameworks/osg.framework):exists(/Library/Frameworks/OpenThreads.framework) {
# No check for GLUT.framework since it's a MAC default # No check for GLUT.framework since it's a MAC default
message("Building support for OpenSceneGraph") message("Building support for OpenSceneGraph")
DEPENDENCIES_PRESENT += osg DEPENDENCIES_PRESENT += osg
DEFINES += QGC_OSG_ENABLED DEFINES += QGC_OSG_ENABLED
# Include OpenSceneGraph libraries # Include OpenSceneGraph libraries
INCLUDEPATH += -framework GLUT \ INCLUDEPATH += -framework GLUT \
-framework Carbon \ -framework Carbon \
-framework OpenThreads \ -framework OpenThreads \
-framework osg \ -framework osg \
-framework osgViewer \ -framework osgViewer \
-framework osgGA \ -framework osgGA \
-framework osgDB \ -framework osgDB \
-framework osgText \ -framework osgText \
-framework osgWidget -framework osgWidget
LIBS += -framework GLUT \ LIBS += -framework GLUT \
-framework Carbon \ -framework Carbon \
-framework OpenThreads \ -framework OpenThreads \
-framework osg \ -framework osg \
-framework osgViewer \ -framework osgViewer \
-framework osgGA \ -framework osgGA \
-framework osgDB \ -framework osgDB \
-framework osgText \ -framework osgText \
-framework osgWidget -framework osgWidget
} }
exists(/usr/include/osgEarth) { exists(/usr/include/osgEarth) {
message("Building support for osgEarth") message("Building support for osgEarth")
DEPENDENCIES_PRESENT += osgearth DEPENDENCIES_PRESENT += osgearth
# Include osgEarth libraries # Include osgEarth libraries
INCLUDEPATH += -framework GDAL \ INCLUDEPATH += -framework GDAL \
$$IN_PWD/lib/mac32-gcc/include \ $$IN_PWD/lib/mac32-gcc/include \
-framework GEOS \ -framework GEOS \
-framework SQLite3 \ -framework SQLite3 \
-framework osgFX \ -framework osgFX \
-framework osgTerrain -framework osgTerrain
LIBS += -framework GDAL \ LIBS += -framework GDAL \
-framework GEOS \ -framework GEOS \
-framework SQLite3 \ -framework SQLite3 \
-framework osgFX \ -framework osgFX \
-framework osgTerrain -framework osgTerrain
DEFINES += QGC_OSGEARTH_ENABLED DEFINES += QGC_OSGEARTH_ENABLED
} }
exists(/opt/local/include/libfreenect) { exists(/opt/local/include/libfreenect) {
message("Building support for libfreenect") message("Building support for libfreenect")
DEPENDENCIES_PRESENT += libfreenect DEPENDENCIES_PRESENT += libfreenect
# Include libfreenect libraries # Include libfreenect libraries
LIBS += -lfreenect LIBS += -lfreenect
DEFINES += QGC_LIBFREENECT_ENABLED DEFINES += QGC_LIBFREENECT_ENABLED
} }
# osg/osgEarth dynamic casts might fail without this compiler option. # osg/osgEarth dynamic casts might fail without this compiler option.
# see http://osgearth.org/wiki/FAQ for details. # see http://osgearth.org/wiki/FAQ for details.
#QMAKE_CXXFLAGS += -Wl,-E #QMAKE_CXXFLAGS += -Wl,-E
} }
# GNU/Linux # GNU/Linux
linux-g++ { linux-g++ {
debug { debug {
#DESTDIR = $$BUILDDIR/debug #DESTDIR = $$BUILDDIR/debug
CONFIG += debug CONFIG += debug
} }
release { release {
#DESTDIR = $$BUILDDIR/release #DESTDIR = $$BUILDDIR/release
} }
QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/.
INCLUDEPATH += /usr/include \ INCLUDEPATH += /usr/include \
/usr/include/qt4/phonon /usr/include/qt4/phonon
# $$BASEDIR/lib/flite/include \ # $$BASEDIR/lib/flite/include \
# $$BASEDIR/lib/flite/lang # $$BASEDIR/lib/flite/lang
message(Building for GNU/Linux 32bit/i386) message(Building for GNU/Linux 32bit/i386)
LIBS += \ LIBS += \
-L/usr/lib \ -L/usr/lib \
-lm \ -lm \
-lflite_cmu_us_kal \ -lflite_cmu_us_kal \
-lflite_usenglish \ -lflite_usenglish \
-lflite_cmulex \ -lflite_cmulex \
-lflite \ -lflite \
-lSDL \ -lSDL \
-lSDLmain -lSDLmain
exists(/usr/include/osg) { exists(/usr/include/osg) {
message("Building support for OpenSceneGraph") message("Building support for OpenSceneGraph")
DEPENDENCIES_PRESENT += osg DEPENDENCIES_PRESENT += osg
# Include OpenSceneGraph libraries # Include OpenSceneGraph libraries
LIBS += -losg \ LIBS += -losg \
-losgViewer -losgViewer
DEFINES += QGC_OSG_ENABLED DEFINES += QGC_OSG_ENABLED
} }
exists(/usr/include/osgEarth) | exists(/usr/local/include/osgEarth) { exists(/usr/include/osgEarth) | exists(/usr/local/include/osgEarth) {
message("Building support for osgEarth") message("Building support for osgEarth")
DEPENDENCIES_PRESENT += osgearth DEPENDENCIES_PRESENT += osgearth
# Include osgEarth libraries # Include osgEarth libraries
LIBS += -losgEarth \ LIBS += -losgEarth \
-losgEarthUtil -losgEarthUtil
DEFINES += QGC_OSGEARTH_ENABLED DEFINES += QGC_OSGEARTH_ENABLED
} }
exists(/usr/local/include/libfreenect/libfreenect.h) { exists(/usr/local/include/libfreenect/libfreenect.h) {
message("Building support for libfreenect") message("Building support for libfreenect")
DEPENDENCIES_PRESENT += libfreenect DEPENDENCIES_PRESENT += libfreenect
INCLUDEPATH += /usr/include/libusb-1.0 INCLUDEPATH += /usr/include/libusb-1.0
# Include libfreenect libraries # Include libfreenect libraries
LIBS += -lfreenect LIBS += -lfreenect
DEFINES += QGC_LIBFREENECT_ENABLED DEFINES += QGC_LIBFREENECT_ENABLED
} }
debug { debug {
QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/debug/. QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/debug/.
QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$TARGETDIR/debug/. QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$TARGETDIR/debug/.
} }
release { release {
QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/release/. QMAKE_POST_LINK += && cp -rf $$BASEDIR/models $$TARGETDIR/release/.
QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$TARGETDIR/release/. QMAKE_POST_LINK += && cp -rf $$BASEDIR/data $$TARGETDIR/release/.
} }
# osg/osgEarth dynamic casts might fail without this compiler option. # osg/osgEarth dynamic casts might fail without this compiler option.
# see http://osgearth.org/wiki/FAQ for details. # see http://osgearth.org/wiki/FAQ for details.
QMAKE_CXXFLAGS += -Wl,-E QMAKE_CXXFLAGS += -Wl,-E
} }
linux-g++-64 { linux-g++-64 {
debug { debug {
#DESTDIR = $$BUILDDIR/debug #DESTDIR = $$BUILDDIR/debug
CONFIG += debug CONFIG += debug
} }
release { release {
#DESTDIR = $$BUILDDIR/release #DESTDIR = $$BUILDDIR/release
} }
QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. QMAKE_POST_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/.
INCLUDEPATH += /usr/include \ INCLUDEPATH += /usr/include \
/usr/include/qt4/phonon /usr/include/qt4/phonon
# $$BASEDIR/lib/flite/include \ # $$BASEDIR/lib/flite/include \
# $$BASEDIR/lib/flite/lang # $$BASEDIR/lib/flite/lang
# 64-bit Linux # 64-bit Linux
message(Building for GNU/Linux 64bit/x64 (g++-64)) message(Building for GNU/Linux 64bit/x64 (g++-64))
LIBS += \ LIBS += \
-L/usr/lib \ -L/usr/lib \
-lm \ -lm \
-lflite_cmu_us_kal \ -lflite_cmu_us_kal \
-lflite_usenglish \ -lflite_usenglish \
-lflite_cmulex \ -lflite_cmulex \
-lflite \ -lflite \
-lSDL \ -lSDL \
-lSDLmain -lSDLmain
exists(/usr/include/osg) { exists(/usr/include/osg) {
message("Building support for OpenSceneGraph") message("Building support for OpenSceneGraph")
DEPENDENCIES_PRESENT += osg DEPENDENCIES_PRESENT += osg
# Include OpenSceneGraph libraries # Include OpenSceneGraph libraries
LIBS += -losg \ LIBS += -losg \
-losgViewer -losgViewer
DEFINES += QGC_OSG_ENABLED DEFINES += QGC_OSG_ENABLED
} }
exists(/usr/include/osgEarth) { exists(/usr/include/osgEarth) {
message("Building support for osgEarth") message("Building support for osgEarth")
DEPENDENCIES_PRESENT += osgearth DEPENDENCIES_PRESENT += osgearth
# Include osgEarth libraries # Include osgEarth libraries
LIBS += -losgEarth \ LIBS += -losgEarth \
-losgEarthUtil -losgEarthUtil
DEFINES += QGC_OSGEARTH_ENABLED DEFINES += QGC_OSGEARTH_ENABLED
} }
exists(/usr/local/include/libfreenect) { exists(/usr/local/include/libfreenect) {
message("Building support for libfreenect") message("Building support for libfreenect")
DEPENDENCIES_PRESENT += libfreenect DEPENDENCIES_PRESENT += libfreenect
INCLUDEPATH += /usr/include/libusb-1.0 INCLUDEPATH += /usr/include/libusb-1.0
# Include libfreenect libraries # Include libfreenect libraries
LIBS += -lfreenect LIBS += -lfreenect
DEFINES += QGC_LIBFREENECT_ENABLED DEFINES += QGC_LIBFREENECT_ENABLED
} }
# osg/osgEarth dynamic casts might fail without this compiler option. # osg/osgEarth dynamic casts might fail without this compiler option.
# see http://osgearth.org/wiki/FAQ for details. # see http://osgearth.org/wiki/FAQ for details.
QMAKE_CXXFLAGS += -Wl,-E QMAKE_CXXFLAGS += -Wl,-E
} }
# Windows (32bit) # Windows (32bit)
win32-msvc2008 { win32-msvc2008 {
message(Building for Windows Visual Studio 2008 (32bit)) message(Building for Windows Visual Studio 2008 (32bit))
CONFIG += qaxcontainer CONFIG += qaxcontainer
# Special settings for debug # Special settings for debug
#CONFIG += CONSOLE #CONFIG += CONSOLE
INCLUDEPATH += $$BASEDIR/lib/sdl/msvc/include \ INCLUDEPATH += $$BASEDIR/lib/sdl/msvc/include \
$$BASEDIR/lib/opal/include \ $$BASEDIR/lib/opal/include \
$$BASEDIR/lib/msinttypes $$BASEDIR/lib/msinttypes
#"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include" #"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"
LIBS += -L$$BASEDIR/lib/sdl/msvc/lib \ LIBS += -L$$BASEDIR/lib/sdl/msvc/lib \
-lSDLmain -lSDL -lSDLmain -lSDL
exists($$BASEDIR/lib/osg123) { exists($$BASEDIR/lib/osg123) {
message("Building support for OSG") message("Building support for OSG")
DEPENDENCIES_PRESENT += osg DEPENDENCIES_PRESENT += osg
# Include OpenSceneGraph and osgEarth libraries # Include OpenSceneGraph and osgEarth libraries
INCLUDEPATH += $$BASEDIR/lib/osgEarth/win32/include \ INCLUDEPATH += $$BASEDIR/lib/osgEarth/win32/include \
$$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/include $$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/include
LIBS += -L$$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/lib \ LIBS += -L$$BASEDIR/lib/osgEarth_3rdparty/win32/OpenSceneGraph-2.8.2/lib \
-losg \ -losg \
-losgViewer \ -losgViewer \
-losgGA \ -losgGA \
-losgDB \ -losgDB \
-losgText \ -losgText \
-lOpenThreads -lOpenThreads
DEFINES += QGC_OSG_ENABLED DEFINES += QGC_OSG_ENABLED
exists($$BASEDIR/lib/osgEarth123) { exists($$BASEDIR/lib/osgEarth123) {
DEPENDENCIES_PRESENT += osgearth DEPENDENCIES_PRESENT += osgearth
message("Building support for osgEarth") message("Building support for osgEarth")
DEFINES += QGC_OSGEARTH_ENABLED DEFINES += QGC_OSGEARTH_ENABLED
LIBS += -L$$BASEDIR/lib/osgEarth/win32/lib \ LIBS += -L$$BASEDIR/lib/osgEarth/win32/lib \
-losgEarth \ -losgEarth \
-losgEarthUtil -losgEarthUtil
} }
} }
RC_FILE = $$BASEDIR/qgroundcontrol.rc RC_FILE = $$BASEDIR/qgroundcontrol.rc
# Copy dependencies # Copy dependencies
BASEDIR_WIN = $$replace(BASEDIR,"/","\\") BASEDIR_WIN = $$replace(BASEDIR,"/","\\")
TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\") TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\")
debug { debug {
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\" QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\audio\" \"$$TARGETDIR_WIN\debug\audio\" /S /E /Y QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\audio\" \"$$TARGETDIR_WIN\debug\audio\" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\models\" \"$$TARGETDIR_WIN\debug\models\" /S /E /Y QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\models\" \"$$TARGETDIR_WIN\debug\models\" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR/images/earth.html $$TARGETDIR_WIN\debug\" QMAKE_POST_LINK += && copy /Y \"$$BASEDIR/images/earth.html $$TARGETDIR_WIN\debug\"
} }
release { release {
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\lib\sdl\win32\SDL.dll\" \"$$TARGETDIR_WIN\release\SDL.dll\" QMAKE_POST_LINK += && copy /Y \"$$BASEDIR_WIN\lib\sdl\win32\SDL.dll\" \"$$TARGETDIR_WIN\release\SDL.dll\"
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\audio\" \"$$TARGETDIR_WIN\release\audio\" /S /E /Y QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\audio\" \"$$TARGETDIR_WIN\release\audio\" /S /E /Y
QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\models\" \"$$TARGETDIR_WIN\release\models\" /S /E /Y QMAKE_POST_LINK += && xcopy \"$$BASEDIR_WIN\models\" \"$$TARGETDIR_WIN\release\models\" /S /E /Y
QMAKE_POST_LINK += && copy /Y \"$$BASEDIR/images/earth.html $$TARGETDIR_WIN\release\" QMAKE_POST_LINK += && copy /Y \"$$BASEDIR/images/earth.html $$TARGETDIR_WIN\release\"
} }
} }
# Windows (32bit) # Windows (32bit)
win32-g++ { win32-g++ {
message(Building for Windows Platform (32bit)) message(Building for Windows Platform (32bit))
# Special settings for debug # Special settings for debug
#CONFIG += CONSOLE #CONFIG += CONSOLE
INCLUDEPATH += $$BASEDIR/lib/sdl/include \ INCLUDEPATH += $$BASEDIR/lib/sdl/include \
$$BASEDIR/lib/opal/include #\ #\ $$BASEDIR/lib/opal/include #\ #\
#"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include" #"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"
LIBS += -L$$BASEDIR/lib/sdl/win32 \ LIBS += -L$$BASEDIR/lib/sdl/win32 \
-lmingw32 -lSDLmain -lSDL -mwindows -lmingw32 -lSDLmain -lSDL -mwindows
debug { debug {
#DESTDIR = $$BUILDDIR/debug #DESTDIR = $$BUILDDIR/debug
} }
release { release {
#DESTDIR = $$BUILDDIR/release #DESTDIR = $$BUILDDIR/release
} }
RC_FILE = $$BASEDIR/qgroundcontrol.rc RC_FILE = $$BASEDIR/qgroundcontrol.rc
# Copy dependencies # Copy dependencies
debug { debug {
QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/debug/SDL.dll QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/debug/SDL.dll
QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/debug/audio QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/debug/audio
QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/debug/models QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/debug/models
} }
release { release {
QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/release/SDL.dll QMAKE_POST_LINK += && cp $$BASEDIR/lib/sdl/win32/SDL.dll $$TARGETDIR/release/SDL.dll
QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/release/audio QMAKE_POST_LINK += && cp -r $$BASEDIR/audio $$TARGETDIR/release/audio
QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/release/models QMAKE_POST_LINK += && cp -r $$BASEDIR/models $$TARGETDIR/release/models
} }
# osg/osgEarth dynamic casts might fail without this compiler option. # osg/osgEarth dynamic casts might fail without this compiler option.
# see http://osgearth.org/wiki/FAQ for details. # see http://osgearth.org/wiki/FAQ for details.
QMAKE_CXXFLAGS += -Wl,-E QMAKE_CXXFLAGS += -Wl,-E
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment