-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZDL.pro
74 lines (61 loc) · 2.35 KB
/
ZDL.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
###############################################################################
# ZDL.pro
# ZDL qmake project file.
#
# Author: Ryan "BioHazard" Turner <[email protected]>
# Author: Cody "QBasicer" Harris <[email protected]>
# Copyright (c) 2011
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or optionally any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
###############################################################################
# This needs to be += so you can specify debug mode on the qmake command line.
CONFIG += qt resources
# Put all the temp files in another directory.
MOC_DIR = obj/
OBJECTS_DIR = obj/
RCC_DIR = obj/
INCLUDEPATH = src/
DEPENDPATH = src/
HEADERS = \
Version.h QLabelLayout.h ZDLApp.h \
ZDLMainWindow.h ZDLAboutWindow.h \
ZDLTab.h ZDLTabMain.h ZDLTabMulti.h \
SOURCES = \
ZDL.cpp ZDLApp.cpp \
ZDLMainWindow.cpp ZDLAboutWindow.cpp \
ZDLTab.cpp ZDLTabMain.cpp ZDLTabMulti.cpp
RESOURCES = res/ZDL.qrc
# Use faster strings.
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
# Nifty build information defines for Versions.h.
ZDL_VERSION = $$system("git describe --tags --always")
!isEmpty(ZDL_VERSION):DEFINES += ZDL_VERSION="\"\\\"$${ZDL_VERSION}\\\"\""
# Windows builds do not like date. It cases qmake to hang.
!win32{
ZDL_TIMESTAMP = $$system("date +'%b %d %Y %H:%M:%S %Z'")
}
win32{
ZDL_TIMESTAMP = "UNKNOWN"
}
!isEmpty(ZDL_TIMESTAMP):DEFINES += ZDL_TIMESTAMP="\"\\\"$${ZDL_TIMESTAMP}\\\"\""
# Platform is special because we always want the Qt version.
ZDL_PLATFORM = $$system("uname -mo")
isEmpty(ZDL_PLATFORM):ZDL_PLATFORM = "Unknown Platform"
DEFINES += ZDL_PLATFORM="\"\\\"$${ZDL_PLATFORM} (Qt $${QT_VERSION})\\\"\""
# Disable debug messages in release mode.
CONFIG(release, debug|release){
message("Release version, disabling debug messages.")
DEFINES += QT_NO_DEBUG_STREAM
}
# Platform-specific stuff.
unix {
# Nobody likes case-sensitive binaries in 'nix. :p
message("building for 'nix, the binary will be lowercase. ;)")
TARGET = "zdl"
}