aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall-frontend
diff options
context:
space:
mode:
authorBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-08 04:13:15 +1100
committerBenjamin-Dobell <benjamin.dobell+github@glassechidna.com.au>2010-12-08 04:13:15 +1100
commit069cbe77b5c9e32fe461ba3921d082f13770b7f5 (patch)
tree86e7bd6810eeb6d4f9fffc82233af590bebaed09 /heimdall-frontend
parentbc3b83cd9b0736fde14b11ee2a06a42cd4b6f918 (diff)
downloadexternal_heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.zip
external_heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.gz
external_heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.bz2
make install output directory can now be set via qmake variable FRONTENDOUTDIR
It can be set like so: qmake -set FRONTENDOUTDIR /Desired/Out/Dir
Diffstat (limited to 'heimdall-frontend')
-rw-r--r--heimdall-frontend/heimdall-frontend.pro44
1 files changed, 24 insertions, 20 deletions
diff --git a/heimdall-frontend/heimdall-frontend.pro b/heimdall-frontend/heimdall-frontend.pro
index 7e1049b..7e5427b 100644
--- a/heimdall-frontend/heimdall-frontend.pro
+++ b/heimdall-frontend/heimdall-frontend.pro
@@ -5,32 +5,36 @@
TEMPLATE = app
TARGET = heimdall-frontend
-macx {
- DESTDIR = ../OSX
-} else win32 { # It's recommended that Windows users compile via VS2010, but just in case...
- DESTDIR = ../Win32
-} else {
- DESTDIR = ../Linux
-}
+OUTPUTDIR = $$[FRONTENDOUTDIR]
macx {
- PROPOSEDINSTALLDIR = /Applications
-} else {
- PROPOSEDINSTALLDIR = /usr/local/bin
-}
-
-message("Install location:" $$PROPOSEDINSTALLDIR)
-DESIREDINSTALLDIR = $$prompt("Press ENTER to use the default location or type an alternative")
+ isEqual(OUTPUTDIR, "") {
+ DESTDIR = /Applications
+ } else {
+ DESTDIR = $$OUTPUTDIR
+ }
-equals(DESIREDINSTALLDIR, "") {
- target.path = $$PROPOSEDINSTALLDIR
} else {
- target.path = $$DESIREDINSTALLDIR
+ win32 { # It's recommended that Windows users compile via VS2010, but just in case...
+ DESTDIR = ../Win32
+
+ !isEqual(OUTPUTDIR, "") {
+ target.path = $$OUTPUTDIR
+ INSTALLS += target
+ }
+ } else {
+ DESTDIR = ../Linux
+
+ isEqual(OUTPUTDIR, "") {
+ target.path = /usr/local/bin
+ } else {
+ target.path = $$OUTPUTDIR
+ }
+
+ INSTALLS += target
+ }
}
-
-INSTALLS += target
-
QT += core gui
CONFIG += release
DEFINES += QT_LARGEFILE_SUPPORT