-
Notifications
You must be signed in to change notification settings - Fork 9
/
ixxatcan.pro
67 lines (45 loc) · 1.63 KB
/
ixxatcan.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
TARGET = qtixxatcanbus
QT = core serialbus
DISTFILES = plugin.json
DEFINES += QTCAN_BASE_EXPORT= QTCAN_DRIVER_EXPORT= QTCAN_STATIC_DRIVERS=1
# set USE_SOCKET to enable use of Socket CAN instead of
# old Vci classes.
# Socket CAN enables multiple instances to communicate
# with the Ixxat at the same time.
DEFINES += USE_SOCKET
HEADERS += \
ixxatcanbackend.h \
CanDriver_ixxatVci.h
SOURCES += \
main.cpp \
ixxatcanbackend.cpp
contains( DEFINES, USE_SOCKET ) {
message(building IXXAT SOCKET version!)
HEADERS += \
SOURCES += \
CanDriver_ixxatVciSocket.cpp
INCLUDEPATH += \
$$PWD/VciWindows_4.1/inc
contains(QT_ARCH, x86_64): LIBS += "$$PWD/VciWindows_4.1/lib/x64/vcinpl2.lib"
contains(QT_ARCH, x86_64): LIBS += "$$PWD/VciWindows_4.1/lib/x64/Release/vciapi.lib"
contains(QT_ARCH, i386): LIBS += "$$PWD/VciWindows_4.1/lib/x32/vciapi2.lib"
contains(QT_ARCH, i386): LIBS += "$$PWD/VciWindows_4.1/lib/x32/Release/vciapi.lib"
} else {
message(building IXXAT OLD version!)
HEADERS += \
SOURCES += \
CanDriver_ixxatVci.cpp \
INCLUDEPATH += \
$$PWD/VciWindows_4.0/inc
equals(QT_ARCH, x86_64): LIBS += "$$PWD/VciWindows_4.0/lib/x64/vcinpl.lib"
equals(QT_ARCH, i386): LIBS += "$$PWD/VciWindows_4.0/lib/ia32/vcinpl.lib"
}
win32 {
# QMAKE_POST_LINK += copy /y $$shell_path($$OUT_PWD/plugins/canbus/qtixxatcanbus*.dll $$[QT_INSTALL_PLUGINS]/canbus)
target.path = $$[QT_INSTALL_PLUGINS]/canbus
INSTALL += target
message(install in $$target.path)
}
PLUGIN_TYPE = canbus
PLUGIN_CLASS_NAME = ixxatCanBusPlugin
load(qt_plugin)