aboutsummaryrefslogtreecommitdiff
path: root/SimpleMotionV2.pri
blob: 4c9378b523be1141722fc0a9397a95faa0433589 (plain)
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
#User options
SUPPORT_FTDI_D2XX_DRIVER = 1 #requires FTDI D2XX driver & library. benefit of this support is automatic detection of correct device and automatic low latency setting for FTDI USB serial converters

INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD


DEFINES += SIMPLEMOTIONV2_LIBRARY

SOURCES += $$PWD/sm_consts.c $$PWD/simplemotion.c $$PWD/busdevice.c $$PWD/drivers/serial/pcserialport.c \
    $$PWD/bufferedmotion.c $$PWD/drivers/tcpip/tcpclient.c $$PWD/devicedeployment.c

HEADERS += $$PWD/simplemotion_private.h\
    $$PWD/drivers/serial/pcserialport.h $$PWD/busdevice.h  $$PWD/simplemotion.h $$PWD/sm485.h $$PWD/simplemotion_defs.h \
    $$PWD/bufferedmotion.h $$PWD/drivers/tcpip/tcpclient.h $$PWD/devicedeployment.h

win32 {
    LIBS+=-lws2_32 #needed for tcp ip API
}

#If FTDI D2XX support is enabled
greaterThan(SUPPORT_FTDI_D2XX_DRIVER, 0+)  {
    SOURCES += $$PWD/drivers/ftdi_d2xx/sm_d2xx.c
    HEADERS += $$PWD/drivers/ftdi_d2xx/sm_d2xx.c
    macx:LIBS              += $$PWD/drivers/ftdi_d2xx/third_party/osx/libftd2xx.a -framework CoreFoundation #mac will needs insetalling some FTDI helper tool & reboot to make port open to work. see d2xx downloads page from ftdi.
    win32:LIBS             += $$PWD/drivers/ftdi_d2xx/third_party/win_32bit/ftd2xx.lib
    linux:LIBS             += #tbd
    DEFINES += FTDI_D2XX_SUPPORT
}