-
Notifications
You must be signed in to change notification settings - Fork 0
/
QRetro.pri
148 lines (132 loc) · 3.34 KB
/
QRetro.pri
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
message("QRetro: Start build")
QT += core gui multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG(debug, debug|release) {
DEFINES += QRETRO_DEBUG=1
} else {
DEFINES += QRETRO_DEBUG=0
}
!QRETRO_CONFIG_NO_CAMERA {
DEFINES += QRETRO_HAVE_CAMERA=1
message("Camera module added.")
} else {
DEFINES += QRETRO_HAVE_CAMERA=0
message("Camera module disabled.")
}
!QRETRO_CONFIG_NO_GAMEPAD {
qtHaveModule(gamepad) {
QT += gamepad
DEFINES += QRETRO_HAVE_GAMEPAD=1
message("Gamepad module added.")
} else {
DEFINES += QRETRO_HAVE_GAMEPAD=0
warning("Gamepad module requested, but is not available.")
}
}
!QRETRO_CONFIG_NO_LOCATION {
qtHaveModule(positioning) {
QT += positioning
DEFINES += QRETRO_HAVE_LOCATION=1
message("Location module added.")
} else {
DEFINES += QRETRO_HAVE_LOCATION=0
warning("Location module requested, but is not available.")
}
}
!QRETRO_CONFIG_NO_MIDI {
include(QMidi/src/QMidi.pri) {
DEFINES += QRETRO_HAVE_MIDI=1
message("MIDI module added.")
} else {
DEFINES += QRETRO_HAVE_MIDI=0
warning("MIDI module requested, but is not available. Did you update submodules?")
}
}
!QRETRO_CONFIG_NO_MULTIMEDIA {
qtHaveModule(multimedia) {
QT += multimedia
DEFINES += QRETRO_HAVE_MULTIMEDIA=1
message("Multimedia module added.")
} else {
DEFINES += QRETRO_HAVE_MULTIMEDIA=0
warning("Multimedia module requested, but is not available.")
}
}
!QRETRO_CONFIG_NO_OPENGL {
win32 {
LIBS += -lOpengl32
}
linux* {
LIBS += -lGL
}
QT += opengl
DEFINES += QRETRO_HAVE_OPENGL=1
message("OpenGL module added.")
} else {
DEFINES += QRETRO_HAVE_OPENGL=0
message("OpenGL module disabled.")
}
!QRETRO_CONFIG_NO_SENSORS {
qtHaveModule(sensors) {
QT += sensors
DEFINES += QRETRO_HAVE_SENSORS=1
message("Sensors module added.")
} else {
DEFINES += QRETRO_HAVE_SENSORS=0
warning("Sensors module requested, but is not available.")
}
}
!QRETRO_CONFIG_NO_SYSTEMINFO {
contains(MOBILITY_CONFIG, systeminfo) {
CONFIG += mobility
MOBILITY += systeminfo
DEFINES += QRETRO_HAVE_SYSTEMINFO=1
message("System info module added.")
} else {
DEFINES += QRETRO_HAVE_SYSTEMINFO=0
warning("System info module requested, but is not available.")
}
}
SOURCES += \
$$PWD/QRetro.cpp \
$$PWD/QRetroAudio.cpp \
$$PWD/QRetroCamera.cpp \
$$PWD/QRetroCommon.cpp \
$$PWD/QRetroDevicePower.cpp \
$$PWD/QRetroDirectories.cpp \
$$PWD/QRetroEnvironment.cpp \
$$PWD/QRetroInput.cpp \
$$PWD/QRetroLocation.cpp \
$$PWD/QRetroMicrophone.cpp \
$$PWD/QRetroMidi.cpp \
$$PWD/QRetroOptions.cpp \
$$PWD/QRetroProcAddress.cpp \
$$PWD/QRetroSensors.cpp \
$$PWD/QRetroUsername.cpp
INCLUDEPATH += \
$$PWD
HEADERS += \
$$PWD/QRetro.h \
$$PWD/QRetroAudio.h \
$$PWD/QRetroAudioVideoEnable.h \
$$PWD/QRetroCamera.h \
$$PWD/QRetroCommon.h \
$$PWD/QRetroDevicePower.h \
$$PWD/QRetroDirectories.h \
$$PWD/QRetroEnvironment.h \
$$PWD/QRetroInput.h \
$$PWD/QRetroLed.h \
$$PWD/QRetroLocation.h \
$$PWD/QRetroMicrophone.h \
$$PWD/QRetroMidi.h \
$$PWD/QRetroOptions.h \
$$PWD/QRetroProcAddress.h \
$$PWD/QRetroSensors.h \
$$PWD/QRetroUsername.h \
$$PWD/QRetro_global.h \
$$PWD/libretro.h \
$$PWD/libretro_core.h
DISTFILES += \
$$PWD/resources/camera.png
RESOURCES += \
$$PWD/resources/resources.qrc