mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 21:20:07 -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
|
Makefile
|
||||||
.qmake.stash
|
.qmake.stash
|
||||||
*.gch
|
*.gch
|
||||||
|
debug/
|
||||||
|
release/
|
||||||
|
@ -5,8 +5,8 @@ CONFIG -= qt
|
|||||||
|
|
||||||
include(../shared_settings.pri)
|
include(../shared_settings.pri)
|
||||||
|
|
||||||
LIBS += -L$$DESTDIR -lEmber
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
|
||||||
LIBS += -L$$DESTDIR -lEmberCL
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
|
||||||
|
|
||||||
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ CONFIG -= qt
|
|||||||
|
|
||||||
include(../shared_settings.pri)
|
include(../shared_settings.pri)
|
||||||
|
|
||||||
LIBS += -L$$DESTDIR -lEmber
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
|
||||||
|
|
||||||
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCL/EmberCLPch.h
|
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCL/EmberCLPch.h
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ CONFIG -= qt
|
|||||||
|
|
||||||
include(../shared_settings.pri)
|
include(../shared_settings.pri)
|
||||||
|
|
||||||
LIBS += -L$$DESTDIR -lEmber
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
|
||||||
LIBS += -L$$DESTDIR -lEmberCL
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
|
||||||
|
|
||||||
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ CONFIG -= qt
|
|||||||
|
|
||||||
include(../shared_settings.pri)
|
include(../shared_settings.pri)
|
||||||
|
|
||||||
LIBS += -L$$DESTDIR -lEmber
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
|
||||||
LIBS += -L$$DESTDIR -lEmberCL
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
|
||||||
|
|
||||||
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
!macx:PRECOMPILED_HEADER = ../../../Source/EmberCommon/EmberCommonPch.h
|
||||||
|
|
||||||
|
@ -13,8 +13,10 @@ TEMPLATE = app
|
|||||||
|
|
||||||
include(../shared_settings.pri)
|
include(../shared_settings.pri)
|
||||||
|
|
||||||
LIBS += -L$$DESTDIR -lEmber
|
macx:ICON = ../../package/osx/Fractorium.icns
|
||||||
LIBS += -L$$DESTDIR -lEmberCL
|
|
||||||
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmber
|
||||||
|
LIBS += -L$$absolute_path($$DESTDIR) -lEmberCL
|
||||||
|
|
||||||
INCLUDEPATH += ../../../Source/Fractorium
|
INCLUDEPATH += ../../../Source/Fractorium
|
||||||
|
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
REBUILD=''
|
REBUILD=''
|
||||||
NVIDIA=''
|
NVIDIA=''
|
||||||
NATIVE=''
|
NATIVE=''
|
||||||
|
CONCURRENCY='-j9'
|
||||||
|
QMAKE=${QMAKE:-qmake}
|
||||||
|
RELEASE='CONFIG+=release CONFIG-=debug'
|
||||||
|
|
||||||
while test $# -gt 0
|
while test $# -gt 0
|
||||||
do
|
do
|
||||||
@ -13,6 +16,10 @@ do
|
|||||||
;;
|
;;
|
||||||
--native) NATIVE="CONFIG += native"
|
--native) NATIVE="CONFIG += native"
|
||||||
;;
|
;;
|
||||||
|
--travis) CONCURRENCY="-j1"
|
||||||
|
;;
|
||||||
|
--debug) RELEASE="CONFIG+=debug CONFIG-=release"
|
||||||
|
;;
|
||||||
--*) echo "bad option $1"; exit 1
|
--*) echo "bad option $1"; exit 1
|
||||||
;;
|
;;
|
||||||
*) echo "unrecognised argument $1"; exit 1
|
*) echo "unrecognised argument $1"; exit 1
|
||||||
@ -29,8 +36,8 @@ do
|
|||||||
if [ "x1" = "x$REBUILD" ]; then
|
if [ "x1" = "x$REBUILD" ]; then
|
||||||
make clean
|
make clean
|
||||||
fi
|
fi
|
||||||
qmake "$NVIDIA" "$NATIVE"
|
$QMAKE "$NVIDIA" "$NATIVE" $RELEASE
|
||||||
make -j9
|
make $CONCURRENCY
|
||||||
if [ "x$?" != "x0" ]; then
|
if [ "x$?" != "x0" ]; then
|
||||||
echo "Build failed! Check output for errors."
|
echo "Build failed! Check output for errors."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -33,9 +33,13 @@ native {
|
|||||||
QMAKE_CXXFLAGS += -march=k8
|
QMAKE_CXXFLAGS += -march=k8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
release:DESTDIR = ../../../release
|
||||||
|
debug:DESTDIR = ../../../debug
|
||||||
|
|
||||||
DESTDIR = $$(HOME)/Dev/fractorium/Bin
|
OBJECTS_DIR = $$DESTDIR/.obj
|
||||||
debug:DESTDIR = $$(HOME)/Dev/fractorium/Dbg
|
MOC_DIR = $$DESTDIR/.moc
|
||||||
|
RCC_DIR = $$DESTDIR/.qrc
|
||||||
|
UI_DIR = $$DESTDIR/.ui
|
||||||
|
|
||||||
LIBS += -L/usr/lib -ljpeg
|
LIBS += -L/usr/lib -ljpeg
|
||||||
LIBS += -L/usr/lib -lpng
|
LIBS += -L/usr/lib -lpng
|
||||||
|
Loading…
Reference in New Issue
Block a user