diff options
author | Benjamin-Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-07 18:13:15 +0100 |
---|---|---|
committer | Benjamin-Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-07 18:13:15 +0100 |
commit | 069cbe77b5c9e32fe461ba3921d082f13770b7f5 (patch) | |
tree | 86e7bd6810eeb6d4f9fffc82233af590bebaed09 /heimdall-frontend | |
parent | Added .gitignore file to remove all of OS X's directory fluff. (diff) | |
download | Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.gz Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.bz2 Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.lz Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.xz Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.tar.zst Heimdall-069cbe77b5c9e32fe461ba3921d082f13770b7f5.zip |
Diffstat (limited to '')
-rw-r--r-- | heimdall-frontend/heimdall-frontend.pro | 44 |
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
|