forked from csete/qthid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qthid.pro
97 lines (79 loc) · 1.99 KB
/
qthid.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
#-------------------------------------------------
#
# Qthid project file.
#
#-------------------------------------------------
QT += core gui
TEMPLATE = app
macx {
# TARGET = "FCD Controller"
TARGET = Qthid
} else {
TARGET = qthid
}
# disable debug messages in release
CONFIG(debug, debug|release) {
# Define version string (see below for releases)
#VER = $$system(git describe --abbrev=8)
VER = 4.0-git
} else {
DEFINES += QT_NO_DEBUG
DEFINES += QT_NO_DEBUG_OUTPUT
VER = 4.0-git
}
# Tip from: http://www.qtcentre.org/wiki/index.php?title=Version_numbering_using_QMake
VERSTR = '\\"$${VER}\\"' # place quotes around the version string
DEFINES += VERSION=\"$${VERSTR}\" # create a VERSION macro containing the version string
SOURCES +=\
mainwindow.cpp \
main.cpp \
fcd.c \
freqctrl.cpp \
iqbalance.cc \
fcddiagram.cpp \
firmware.cpp \
dockifgain.cpp
mac: SOURCES += hidmac.c
win32: SOURCES += hidwin.c
#linux-g++|linux-g++-64 {
# SOURCES += hid-libusb.c
#}
HEADERS += \
mainwindow.h \
hidapi.h \
fcd.h fcdhidcmd.h \
freqctrl.h \
iqbalance.h \
fcddiagram.h \
firmware.h \
dockifgain.h
FORMS += \
iqbalance.ui \
mainwindow.ui \
fcddiagram.ui \
firmware.ui \
dockifgain.ui
mac:LIBS += /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation \
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
win32:LIBS += "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Lib\\setupapi.lib"
# libusb-1.0 on Linux uses pkg-config
linux-g++|linux-g++-64 {
# CONFIG += link_pkgconfig
# PKGCONFIG += libusb-1.0
# SOURCES += hid-libusb.c
LIBS += -ludev
SOURCES += hidraw.c
}
RESOURCES += \
qthid.qrc
win32 {
# application icon on Windows
RC_FILE = qthid.rc
} else:macx {
# app icon on OSX
ICON = images/qthid.icns
}
OTHER_FILES += AUTHORS.txt LICENSE.txt NEWS.txt README.txt \
qthid.rc \
images/qthid.ico \
images/qthid.icns