-
Notifications
You must be signed in to change notification settings - Fork 2
/
backend.pro
167 lines (135 loc) · 3.88 KB
/
backend.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
include( msvc.pri )
##
## Extra targets
##
QMAKE_EXTRA_TARGETS += portable
##
## Qt settings
##
# Undefine this for gcc (MINGW), it's not necessary
gcc: CONFIG -= debug_and_release debug_and_release_target
CONFIG += plugin qt
TEMPLATE = lib
QT += qml quick multimedia
# Needed to grab the native OpenGL context handle
macx: QT += platformsupport-private
TARGET = phoenix-backend
##
## Compiler settings
##
CONFIG += c++11
OBJECTS_DIR = obj
MOC_DIR = moc
RCC_DIR = rcc
UI_DIR = gui
# Include libraries
win32: msvc: INCLUDEPATH += $$SAMPLERATEBASE\include # See msvc.pri
win32: gcc: INCLUDEPATH += C:/msys64/mingw64/include C:/msys64/mingw64/include/SDL2 # MSYS2
win32: gcc: INCLUDEPATH += /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/SDL2 # MXE (MinGW)
macx: INCLUDEPATH += /usr/local/include /usr/local/include/SDL2 # Homebrew
macx: INCLUDEPATH += /usr/local/include /opt/local/include/SDL2 # MacPorts
unix: INCLUDEPATH += /usr/include/SDL2 # Linux
# Include externals
DEFINES += QUAZIP_STATIC
INCLUDEPATH += ../externals/quazip/quazip
# Include our stuff
INCLUDEPATH += consumer control core input pipeline util
# Build with debugging info
DEFINES += QT_MESSAGELOGCONTEXT
HEADERS += \
backendplugin.h \
consumer/audiobuffer.h \
consumer/audiooutput.h \
consumer/videooutput.h \
consumer/videooutputnode.h \
control/controloutput.h \
control/gameconsole.h \
core/core.h \
core/libretro.h \
core/libretrocore.h \
core/libretroloader.h \
core/libretrorunner.h \
core/libretrosymbols.h \
core/libretrovariable.h \
core/libretrovariablemodel.h \
core/libretrovariableforwarder.h \
input/gamepadstate.h \
input/globalgamepad.h \
input/keyboardstate.h \
input/mousestate.h \
input/remapper.h \
input/remappermodel.h \
input/sdlmanager.h \
input/sdlunloader.h \
pipeline/node.h \
pipeline/pipelinecommon.h \
util/logging.h \
util/microtimer.h \
util/phoenixwindow.h \
util/phoenixwindownode.h \
SOURCES += \
backendplugin.cpp \
consumer/audiobuffer.cpp \
consumer/audiooutput.cpp \
consumer/videooutput.cpp \
consumer/videooutputnode.cpp \
control/controloutput.cpp \
control/gameconsole.cpp \
core/core.cpp \
core/libretrocore.cpp \
core/libretroloader.cpp \
core/libretrorunner.cpp \
core/libretrosymbols.cpp \
core/libretrovariable.cpp \
core/libretrovariablemodel.cpp \
core/libretrovariableforwarder.cpp \
input/gamepadstate.cpp \
input/globalgamepad.cpp \
input/keyboardstate.cpp \
input/mousestate.cpp \
input/remapper.cpp \
input/remappermodel.cpp \
input/sdlmanager.cpp \
input/sdlunloader.cpp \
pipeline/node.cpp \
util/logging.cpp \
util/microtimer.cpp \
util/phoenixwindow.cpp \
util/phoenixwindownode.cpp \
OBJECTIVE_SOURCES += \
util/osxhelper.mm
RESOURCES += input/controllerdb.qrc
##
## Linker settings
##
##
## Library paths
##
# Externals
LIBS += -L../externals/quazip/quazip
# SDL2
macx: LIBS += -L/usr/local/lib -L/opt/local/lib # Homebrew, MacPorts
msvc: {
LIBS += /LIBPATH:$$SAMPLERATEBASE\lib
CONFIG( debug, debug|release ): {
LIBS += /LIBPATH:../externals/quazip/quazip/debug
}
else {
LIBS += /LIBPATH:../externals/quazip/quazip/release
}
}
##
## Libraries
##
# Externals
LIBS += -lquazip
!msvc {
# SDL 2
win32: LIBS += -lSDL2main
LIBS += -lSDL2
# Other libraries we use
LIBS += -lsamplerate -lz
}
msvc: {
LIBS += libsamplerate-0.lib
}