Commit 324f7556 authored by pixhawk's avatar pixhawk

cleaned up build config

parent 5fc911f8
...@@ -103,10 +103,9 @@ macx { ...@@ -103,10 +103,9 @@ macx {
# GNU/Linux # GNU/Linux
linux-g++ { linux-g++ {
CONFIG += debug
debug { debug {
DESTDIR = $$BUILDDIR/debug DESTDIR = $$BUILDDIR/debug
CONFIG += debug
} }
release { release {
...@@ -121,18 +120,8 @@ linux-g++ { ...@@ -121,18 +120,8 @@ linux-g++ {
# $$BASEDIR/lib/flite/lang # $$BASEDIR/lib/flite/lang
HARDWARE_PLATFORM = $$system(uname -a) message(Building for GNU/Linux 32bit/i386)
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)
}
LIBS += \ LIBS += \
-L/usr/lib \ -L/usr/lib \
-lm \ -lm \
...@@ -177,10 +166,10 @@ linux-g++ { ...@@ -177,10 +166,10 @@ linux-g++ {
} }
linux-g++-64 { linux-g++-64 {
CONFIG += debug
debug { debug {
DESTDIR = $$BUILDDIR/debug DESTDIR = $$BUILDDIR/debug
CONFIG += debug
} }
release { release {
...@@ -188,24 +177,16 @@ linux-g++-64 { ...@@ -188,24 +177,16 @@ linux-g++-64 {
} }
QMAKE_PRE_LINK += cp -rf $$BASEDIR/audio $$DESTDIR/. QMAKE_PRE_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
HARDWARE_PLATFORM = $$system(uname -a) # 64-bit Linux
contains( HARDWARE_PLATFORM, x86_64 ) { message(Building for GNU/Linux 64bit/x64 (g++-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)
}
LIBS += \ LIBS += \
-L/usr/lib \ -L/usr/lib \
-lm \ -lm \
...@@ -242,7 +223,6 @@ linux-g++-64 { ...@@ -242,7 +223,6 @@ linux-g++-64 {
LIBS += -lfreenect LIBS += -lfreenect
DEFINES += QGC_LIBFREENECT_ENABLED DEFINES += QGC_LIBFREENECT_ENABLED
} }
} }
# Windows (32bit) # Windows (32bit)
......
...@@ -37,8 +37,7 @@ BASEDIR = $$IN_PWD ...@@ -37,8 +37,7 @@ BASEDIR = $$IN_PWD
TARGETDIR = $$OUT_PWD TARGETDIR = $$OUT_PWD
BUILDDIR = $$TARGETDIR/build BUILDDIR = $$TARGETDIR/build
LANGUAGE = C++ LANGUAGE = C++
CONFIG += debug_and_release \ CONFIG += console
console
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
...@@ -351,9 +350,9 @@ contains(DEPENDENCIES_PRESENT, osgearth) { ...@@ -351,9 +350,9 @@ contains(DEPENDENCIES_PRESENT, osgearth) {
} }
} }
contains(DEPENDENCIES_PRESENT, libfreenect) { contains(DEPENDENCIES_PRESENT, libfreenect) {
message("Including sources for libfreenect") message("Including sources for libfreenect")
# Enable only if libfreenect is available # Enable only if libfreenect is available
SOURCES += src/input/Freenect.cc SOURCES += src/input/Freenect.cc
} }
......
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