-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
KeyboardVisualizer.pro
165 lines (138 loc) · 8.25 KB
/
KeyboardVisualizer.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
#-----------------------------------------------------------------------#
# Keyboard Visualizer 4.x QMake Project #
# #
# Adam Honse (CalcProgrammer1) 5/15/2020 #
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
# Qt Configuration #
#-----------------------------------------------------------------------#
QT += \
core \
gui \
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#-----------------------------------------------------------------------#
# Application Configuration #
#-----------------------------------------------------------------------#
VERSION = 4.01
TARGET = KeyboardVisualizer
TEMPLATE = app
CONFIG += no_batch
#-----------------------------------------------------------------------#
# Automatically generated build information #
#-----------------------------------------------------------------------#
win32:BUILDDATE = $$system(date /t)
unix:BUILDDATE = $$system(date -R)
GIT_COMMIT_ID = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD)
GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD)
GIT_BRANCH = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD)
DEFINES += \
VERSION_STRING=\\"\"\"$$VERSION\\"\"\" \
BUILDDATE_STRING=\\"\"\"$$BUILDDATE\\"\"\" \
GIT_COMMIT_ID=\\"\"\"$$GIT_COMMIT_ID\\"\"\" \
GIT_COMMIT_DATE=\\"\"\"$$GIT_COMMIT_DATE\\"\"\" \
GIT_BRANCH=\\"\"\"$$GIT_BRANCH\\"\"\" \
#-----------------------------------------------------------------------#
# Keyboard Visualizer #
#-----------------------------------------------------------------------#
INCLUDEPATH += \
KeyboardVisualizerCommon/ \
KeyboardVisualizerQT/ \
HEADERS += \
KeyboardVisualizerCommon/chuck_fft.h \
KeyboardVisualizerCommon/hsv.h \
KeyboardVisualizerCommon/Visualizer.h \
KeyboardVisualizerCommon/VisualizerDefines.h \
KeyboardVisualizerQT/KeyboardVisDlg.h \
SOURCES += \
KeyboardVisualizerCommon/hsv.cpp \
KeyboardVisualizerCommon/Visualizer.cpp \
KeyboardVisualizerCommon/chuck_fft.c \
KeyboardVisualizerQT/KeyboardVisDlg.cpp \
KeyboardVisualizerQT/main.cpp \
RESOURCES += \
KeyboardVisualizerQT/resources.qrc
FORMS += \
KeyboardVisualizerQT/keyboardvisualizer.ui
DISTFILES += \
#-----------------------------------------------------------------------#
# OpenRGB SDK #
#-----------------------------------------------------------------------#
INCLUDEPATH += \
OpenRGB/ \
OpenRGB/net_port/ \
OpenRGB/RGBController/ \
HEADERS += \
OpenRGB/NetworkClient.h \
OpenRGB/NetworkProtocol.h \
OpenRGB/net_port/net_port.h \
OpenRGB/RGBController/RGBController.h \
OpenRGB/RGBController/RGBController_Network.h \
SOURCES += \
OpenRGB/NetworkClient.cpp \
OpenRGB/net_port/net_port.cpp \
OpenRGB/RGBController/RGBController.cpp \
OpenRGB/RGBController/RGBController_Network.cpp \
#-----------------------------------------------------------------------#
# Windows-specific Configuration #
#-----------------------------------------------------------------------#
win32:contains(QMAKE_TARGET.arch, x86_64) {
LIBS += \
-lws2_32 \
-lole32 \
}
win32:contains(QMAKE_TARGET.arch, x86) {
LIBS += \
-lws2_32 \
-lole32 \
}
win32:DEFINES -= \
UNICODE
win32:DEFINES += \
_MBCS \
WIN32 \
_CRT_SECURE_NO_WARNINGS \
_WINSOCK_DEPRECATED_NO_WARNINGS \
WIN32_LEAN_AND_MEAN
win32:RC_ICONS += \
KeyboardVisualizerQT/KeyboardVisualizer.ico
#-------------------------------------------------------------------#
# Windows GitLab CI Configuration #
#-------------------------------------------------------------------#
win32:CONFIG(debug, debug|release) {
win32:DESTDIR = debug
}
win32:CONFIG(release, debug|release) {
win32:DESTDIR = release
}
win32:OBJECTS_DIR = _intermediate_$$DESTDIR/.obj
win32:MOC_DIR = _intermediate_$$DESTDIR/.moc
win32:RCC_DIR = _intermediate_$$DESTDIR/.qrc
win32:UI_DIR = _intermediate_$$DESTDIR/.ui
#-----------------------------------------------------------------------#
# Linux-specific Configuration #
#-----------------------------------------------------------------------#
unix:!macx {
LIBS += -lopenal
#-------------------------------------------------------------------#
# Set up install paths #
# These install paths are used for AppImage and .deb packaging #
#-------------------------------------------------------------------#
isEmpty(PREFIX) {
PREFIX = /usr
}
target.path=$$PREFIX/bin/
desktop.path=$$PREFIX/share/applications/
desktop.files+=KeyboardVisualizerQT/KeyboardVisualizer.desktop
pixmap.path=$$PREFIX/share/pixmaps/
pixmap.files+=KeyboardVisualizerQT/KeyboardVisualizer.png
INSTALLS += target desktop pixmap
}
#-----------------------------------------------------------------------#
# MacOS-specific Configuration #
#-----------------------------------------------------------------------#
macx: {
CONFIG += c++14
LIBS += -framework OpenAL
}
macx:ICON += \
KeyboardVisualizerQT/KeyboardVisualizer.icns