-
Notifications
You must be signed in to change notification settings - Fork 1
/
hv-kb390l-config.pro
93 lines (81 loc) · 2.78 KB
/
hv-kb390l-config.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
###############################################################################
#
# Copyright 2018 Pavel Bludov <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
###############################################################################
lessThan(QT_MAJOR_VERSION, 5) \
| equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 2) \
: error (QT 5.2 or newer is required)
isEmpty(PREFIX): PREFIX = /usr
DEFINES += PREFIX=$$PREFIX
CONFIG += c++11
QT += core gui widgets
include (libqhid/libqhid.pri)
TEMPLATE = app
TARGET = hv-kb390l-config
VERSION = 1.0
DEFINES += PRODUCT_NAME=\\\"$$TARGET\\\" \
PRODUCT_VERSION=\\\"$$VERSION\\\"
SOURCES += src/buttonedit.cpp \
src/enumedit.cpp \
src/macroedit.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/mousebuttonbox.cpp \
src/kb390l.cpp \
src/pagelight.cpp \
src/pagemacro.cpp \
src/usbcommandedit.cpp \
src/usbscancodeedit.cpp \
src/pagespeed.cpp
HEADERS += src/buttonedit.h \
src/enumedit.h \
src/macroedit.h \
src/mainwindow.h \
src/mousebuttonbox.h \
src/kb390l.h \
src/pagelight.h \
src/pagemacro.h \
src/usbcommandedit.h \
src/usbscancodeedit.h \
src/pagespeed.h \
src/kbwidget.h
FORMS += ui/mainwindow.ui \
ui/pagelight.ui \
ui/pagemacro.ui \
ui/pagespeed.ui
RESOURCES += \
res/hv-kb390l-config.qrc
# MacOS specific
ICON = res/hv-kb390l-config.icns
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
QMAKE_TARGET_BUNDLE_PREFIX = github.pbludov
# Windows specific
RC_ICONS = res/hv-kb390l-config.ico
QMAKE_TARGET_COPYRIGHT = Pavel Bludov <[email protected]>
QMAKE_TARGET_DESCRIPTION = HAVIT KB390L keyboard configuration utility.
# Linux specific
target.path=$$PREFIX/bin
man.files=doc/hv-kb390l-config.1
man.path=$$PREFIX/share/man/man1
shortcut.files = hv-kb390l-config.desktop
shortcut.path = $$PREFIX/share/applications
icon.files = res/hv-kb390l-config.png
icon.path = $$PREFIX/share/icons/hicolor/48x48/apps
udev.files = 51-hv-kb390l-keyboard.rules
udev.path = /etc/udev/rules.d
INSTALLS += target man icon shortcut udev