File: qthid.pro

package info (click to toggle)
qthid-fcd-controller 4.1-3
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,368 kB
  • ctags: 882
  • sloc: ansic: 5,558; cpp: 2,269; makefile: 16; sh: 14
file content (89 lines) | stat: -rw-r--r-- 1,962 bytes parent folder | download | duplicates (2)
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
#-------------------------------------------------
#
# Qthid project file.
#
#-------------------------------------------------

QT       += core gui

TEMPLATE = app

macx {
    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)
} else {
    DEFINES += QT_NO_DEBUG
    DEFINES += QT_NO_DEBUG_OUTPUT
    VER = 4.1
}

# 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

QMAKE_CXXFLAGS += $$(CPPFLAGS)
QMAKE_CPPFLAGS += $$(CPPFLAGS)
QMAKE_CFLAGS += $$(CFLAGS)
QMAKE_LFLAGS += $$(LDFLAGS)

SOURCES +=\
    mainwindow.cpp \
    main.cpp \
    fcd.c \
    freqctrl.cpp \
    firmware.cpp

mac: SOURCES += hidmac.c
win32: SOURCES += hidwin.c

HEADERS  += \
    mainwindow.h \
    hidapi.h \
    fcd.h fcdhidcmd.h \
    freqctrl.h \
    firmware.h

FORMS    += \
    mainwindow.ui \
    firmware.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
} else:unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += libusb-1.0
    SOURCES += hid-libusb.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