From 324f75568e8d340cdb4735d04d88bb882a0070d2 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Fri, 26 Nov 2010 19:16:51 +0100 Subject: [PATCH] cleaned up build config --- qgroundcontrol.pri | 36 ++++++++---------------------------- qgroundcontrol.pro | 7 +++---- 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index 5711d9d45..2b34bda0d 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -103,10 +103,9 @@ macx { # GNU/Linux linux-g++ { - CONFIG += debug - debug { DESTDIR = $$BUILDDIR/debug + CONFIG += debug } release { @@ -121,18 +120,8 @@ linux-g++ { # $$BASEDIR/lib/flite/lang - HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, x86_64 ) { - # 64-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux64 - message(Building for GNU/Linux 64bit/x64) - } else { - # 32-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux32 - message(Building for GNU/Linux 32bit/i386) - } + message(Building for GNU/Linux 32bit/i386) + LIBS += \ -L/usr/lib \ -lm \ @@ -177,10 +166,10 @@ linux-g++ { } linux-g++-64 { - CONFIG += debug debug { DESTDIR = $$BUILDDIR/debug + CONFIG += debug } release { @@ -188,24 +177,16 @@ linux-g++-64 { } QMAKE_PRE_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. + INCLUDEPATH += /usr/include \ /usr/include/qt4/phonon # $$BASEDIR/lib/flite/include \ # $$BASEDIR/lib/flite/lang - HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, x86_64 ) { - # 64-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux64 - message(Building for GNU/Linux 64bit/x64) - } else { - # 32-bit Linux - #LIBS += \ - #-L$$BASEDIR/lib/flite/linux32 - message(Building for GNU/Linux 32bit/i386) - } + # 64-bit Linux + message(Building for GNU/Linux 64bit/x64 (g++-64)) + LIBS += \ -L/usr/lib \ -lm \ @@ -242,7 +223,6 @@ linux-g++-64 { LIBS += -lfreenect DEFINES += QGC_LIBFREENECT_ENABLED } - } # Windows (32bit) diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index e7f4f0a51..db1c2c4de 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -37,8 +37,7 @@ BASEDIR = $$IN_PWD TARGETDIR = $$OUT_PWD BUILDDIR = $$TARGETDIR/build LANGUAGE = C++ -CONFIG += debug_and_release \ - console +CONFIG += console OBJECTS_DIR = $$BUILDDIR/obj MOC_DIR = $$BUILDDIR/moc UI_HEADERS_DIR = src/ui/generated @@ -351,9 +350,9 @@ contains(DEPENDENCIES_PRESENT, osgearth) { } } -contains(DEPENDENCIES_PRESENT, libfreenect) { +contains(DEPENDENCIES_PRESENT, libfreenect) { message("Including sources for libfreenect") - + # Enable only if libfreenect is available SOURCES += src/input/Freenect.cc } -- 2.22.0