-
Notifications
You must be signed in to change notification settings - Fork 69
/
midieditor.pro
90 lines (84 loc) · 2.59 KB
/
midieditor.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
TEMPLATE = app
TARGET = MidiEditor
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += core \
gui \
network \
xml \
multimedia
#DEFINES += ENABLE_REMOTE
HEADERS += $$files(**.h, true)
SOURCES += $$files(**.cpp, true)
FORMS +=
RESOURCES += resources.qrc
message(get arch)
message($$(OVERRIDE_ARCH))
ARCH_FORCE = $$(OVERRIDE_ARCH)
contains(ARCH_FORCE, 64){
DEFINES += __ARCH64__
message(arch forced to 64 bit)
} else {
contains(ARCH_FORCE, 32){
message(arch forced to 32 bit)
} else {
contains(QMAKE_HOST.arch, x86_64):{
DEFINES += __ARCH64__
message(arch recognized as 64 bit)
} else {
message(arch recognized as 32 bit)
}
}
}
## Obtain release version info. We get this from the environment variables.
## To set them, use
##
## $ export MIDIEDITOR_RELEASE_VERSION_STRING=3.1.4
## $ export MIDIEDITOR_RELEASE_VERSION_ID=4
## $ export MIDIEDITOR_RELEASE_DATE=1970-01-01
##
message(MIDIEDITOR_RELEASE_VERSION_STRING=$$(MIDIEDITOR_RELEASE_VERSION_STRING))
MIDIEDITOR_RELEASE_VERSION_STRING_QMAKE=$$(MIDIEDITOR_RELEASE_VERSION_STRING)
isEmpty(MIDIEDITOR_RELEASE_VERSION_STRING_QMAKE) {
MIDIEDITOR_RELEASE_VERSION_STRING_QMAKE=Unofficial
}
message(Release version is set to $$MIDIEDITOR_RELEASE_VERSION_STRING_QMAKE)
DEFINES += MIDIEDITOR_RELEASE_VERSION_STRING_DEF=$$MIDIEDITOR_RELEASE_VERSION_STRING_QMAKE
message(MIDIEDITOR_RELEASE_VERSION_ID=$$(MIDIEDITOR_RELEASE_VERSION_ID))
MIDIEDITOR_RELEASE_VERSION_ID_QMAKE=$$(MIDIEDITOR_RELEASE_VERSION_ID)
isEmpty(MIDIEDITOR_RELEASE_VERSION_ID_QMAKE) {
MIDIEDITOR_RELEASE_VERSION_ID_QMAKE=-1
}
message(Release version id is set to $$MIDIEDITOR_RELEASE_VERSION_ID_QMAKE)
DEFINES += MIDIEDITOR_RELEASE_VERSION_ID_DEF=$$MIDIEDITOR_RELEASE_VERSION_ID_QMAKE
MIDIEDITOR_RELEASE_DATE_QMAKE=$$(MIDIEDITOR_RELEASE_DATE)
isEmpty(MIDIEDITOR_RELEASE_DATE_QMAKE) {
# Read current date
MIDIEDITOR_RELEASE_DATE_QMAKE=\"$$quote($$system("date"))\"
}
DEFINES += MIDIEDITOR_RELEASE_DATE_DEF=$$MIDIEDITOR_RELEASE_DATE_QMAKE
message(Release date is set to $$MIDIEDITOR_RELEASE_DATE_QMAKE)
unix:!macx {
DEFINES += __LINUX_ALSASEQ__
DEFINES += __LINUX_ALSA__
LIBS += -lasound
CONFIG += release
OBJECTS_DIR = .tmp
MOC_DIR = .tmp
}
win32: {
DEFINES += __WINDOWS_MM__
LIBS += -lwinmm
CONFIG += release
RC_FILE = midieditor.rc
OBJECTS_DIR = .tmp
MOC_DIR = .tmp
Release:DESTDIR = bin
}
macx: {
DEFINES += __MACOSX_CORE__
LIBS += -framework CoreMidi -framework CoreAudio -framework CoreFoundation
CONFIG += release
OBJECTS_DIR = .tmp
MOC_DIR = .tmp
ICON = midieditor.icns
}