Fix output directory in qt projects to be relative to the repository

Conflicts:
	Builds/QtCreator/build_all.sh
This commit is contained in:
Simon Detheridge 2015-07-24 11:09:44 +01:00
parent 3be0a9b469
commit fd5e177df7
8 changed files with 28 additions and 13 deletions

2
.gitignore vendored
View File

@ -47,3 +47,5 @@ Builds/QtCreator/build*
Makefile
.qmake.stash
*.gch
debug/
release/

View File

@ -5,8 +5,8 @@ CONFIG -= qt
include(../shared_settings.pri)
LIBS += -L$$DESTDIR -lEmber
LIBS += -L$$DESTDIR -lEmberCL
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h

View File

@ -5,7 +5,7 @@ CONFIG -= qt
include(../shared_settings.pri)
LIBS += -L$$DESTDIR -lEmber
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCL/EmberCLPch.h

View File

@ -5,8 +5,8 @@ CONFIG -= qt
include(../shared_settings.pri)
LIBS += -L$$DESTDIR -lEmber
LIBS += -L$$DESTDIR -lEmberCL
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h

View File

@ -5,8 +5,8 @@ CONFIG -= qt
include(../shared_settings.pri)
LIBS += -L$$DESTDIR -lEmber
LIBS += -L$$DESTDIR -lEmberCL
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h

View File

@ -13,8 +13,10 @@ TEMPLATE = app
include(../shared_settings.pri)
LIBS += -L$$DESTDIR -lEmber
LIBS += -L$$DESTDIR -lEmberCL
macx:ICON = ../../package/osx/Fractorium.icns
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
INCLUDEPATH += ../../../Source/Fractorium

View File

@ -3,6 +3,9 @@
REBUILD=''
NVIDIA=''
NATIVE=''
CONCURRENCY='-j9'
QMAKE=${QMAKE:-qmake}
RELEASE='CONFIG+=release CONFIG-=debug'
while test $# -gt 0
do
@ -13,6 +16,10 @@ do
;;
--native) NATIVE="CONFIG += native"
;;
--travis) CONCURRENCY="-j1"
;;
--debug) RELEASE="CONFIG+=debug CONFIG-=release"
;;
--*) echo "bad option $1"; exit 1
;;
*) echo "unrecognised argument $1"; exit 1
@ -29,8 +36,8 @@ do
if [ "x1" = "x$REBUILD" ]; then
make clean
fi
qmake "$NVIDIA" "$NATIVE"
make -j9
$QMAKE "$NVIDIA" "$NATIVE" $RELEASE
make $CONCURRENCY
if [ "x$?" != "x0" ]; then
echo "Build failed! Check output for errors."
exit 1

View File

@ -33,9 +33,13 @@ native {
QMAKE_CXXFLAGS += -march=k8
}
release:DESTDIR = ../../../release
debug:DESTDIR = ../../../debug
DESTDIR = $$(HOME)/Dev/fractorium/Bin
debug:DESTDIR = $$(HOME)/Dev/fractorium/Dbg
OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.ui
LIBS += -L/usr/lib -ljpeg
LIBS += -L/usr/lib -lpng