-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathagbplay-gui.pro
64 lines (57 loc) · 1.78 KB
/
agbplay-gui.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
TEMPLATE = app
QT = core gui widgets
CONFIG += c++17
OBJECTS_DIR = .build
MOC_DIR = .build
RCC_DIR = .build
INCLUDEPATH += $${_PRO_FILE_PWD_}/src $${_PRO_FILE_PWD_}/agbplay/src $${_PRO_FILE_PWD_}
QMAKE_CXXFLAGS += -D_XOPEN_SOURCE=700 -Wall -Wextra -Wunreachable-code -Wno-conversion
CONFIG += release
CONFIG -= debug debug_and_release
CONFIG += link_pkgconfig
!isEmpty(PA_ROOT) {
INCLUDEPATH += $$PA_ROOT/include
LIBS += -L$$PA_ROOT/lib -lportaudio
}
else:packagesExist(portaudio-2.0) {
PKGCONFIG += portaudio-2.0
}
else {
!isEmpty(PA_INCLUDE): INCLUDEPATH += $$PA_INCLUDE
!isEmpty(PA_LIB): LIBS += -L$$PA_LIB
LIBS += -lportaudio
}
win32 {
CONFIG += static
QMAKE_LFLAGS += -static-libgcc -static-libstdc++ -static
}
RESOURCES += resources/agbplay.qrc
GUI_CLASS += PianoKeys VUMeter TrackHeader TrackView TrackList
GUI_CLASS += RomView PlayerWindow SongModel Player UiUtils
GUI_CLASS += AudioThread PlayerControls PlaylistModel RiffWriter
GUI_CLASS += PreferencesWindow
for(F, GUI_CLASS) {
HEADERS += src/$${F}.h
SOURCES += src/$${F}.cpp
}
AGBPLAY += CGBChannel CGBPatterns Debug GameConfig PlayerContext
AGBPLAY += SequenceReader SoundMixer ReverbEffect LoudnessCalculator
AGBPLAY += SoundChannel Resampler Rom SoundData SongEntry Types Xcept
AGBPLAY += Ringbuffer
for(F, AGBPLAY) {
HEADERS += agbplay/src/$${F}.h
SOURCES += agbplay/src/$${F}.cpp
}
# files with the implementations replaced with Qt equivalents
HEADERS += agbplay/src/ConfigManager.h agbplay/src/OS.h
SOURCES += src/ConfigManager.cpp src/OS.cpp
SOURCES += src/main.cpp
VERSION = 1.1.0
# If git commands can be run without errors, grab the commit hash
system(git log -1 --pretty=format:) {
BUILD_HASH = -$$system(git log -1 --pretty=format:%h)
}
else {
BUILD_HASH =
}
DEFINES += AGBPLAY_VERSION=$${VERSION}$${BUILD_HASH}