mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 05:00:06 -05:00
Fix output directory in qt projects to be relative to the repository
Conflicts: Builds/QtCreator/build_all.sh
This commit is contained in:
parent
3be0a9b469
commit
fd5e177df7
2
.gitignore
vendored
2
.gitignore
vendored
@ -47,3 +47,5 @@ Builds/QtCreator/build*
|
||||
Makefile
|
||||
.qmake.stash
|
||||
*.gch
|
||||
debug/
|
||||
release/
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user