You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
59 lines
1.1 KiB
12 years ago
|
INCLUDEPATH += $$PWD
|
||
|
|
||
|
unix {
|
||
|
CONFIG += link_pkgconfig
|
||
|
|
||
|
packagesExist(libudev) {
|
||
|
DEFINES += HAVE_LIBUDEV
|
||
|
PKGCONFIG += libudev
|
||
|
}
|
||
|
}
|
||
|
|
||
|
PUBLIC_HEADERS += \
|
||
|
$$PWD/qserialportglobal.h \
|
||
|
$$PWD/qserialport.h \
|
||
|
$$PWD/qserialportinfo.h
|
||
|
|
||
|
PRIVATE_HEADERS += \
|
||
|
$$PWD/qserialport_p.h \
|
||
|
$$PWD/qserialportinfo_p.h
|
||
|
|
||
|
SOURCES += \
|
||
|
$$PWD/qserialport.cpp \
|
||
|
$$PWD/qserialportinfo.cpp
|
||
|
|
||
|
win32 {
|
||
|
PRIVATE_HEADERS += \
|
||
|
$$PWD/qserialport_win_p.h
|
||
|
|
||
|
SOURCES += \
|
||
|
$$PWD/qserialport_win.cpp \
|
||
|
$$PWD/qserialportinfo_win.cpp
|
||
|
|
||
|
LIBS += -lsetupapi -ladvapi32
|
||
|
|
||
|
}
|
||
|
|
||
|
unix:!symbian {
|
||
|
PRIVATE_HEADERS += \
|
||
|
$$PWD/qttylocker_unix_p.h \
|
||
|
$$PWD/qserialport_unix_p.h
|
||
|
|
||
|
SOURCES += \
|
||
|
$$PWD/qttylocker_unix.cpp \
|
||
|
$$PWD/qserialport_unix.cpp \
|
||
|
$$PWD/qserialportinfo_unix.cpp
|
||
|
|
||
|
macx {
|
||
|
SOURCES += $$PWD/qserialportinfo_mac.cpp
|
||
|
|
||
|
LIBS += -framework IOKit -framework CoreFoundation
|
||
|
} else {
|
||
|
linux*:contains( DEFINES, HAVE_LIBUDEV ) {
|
||
|
LIBS += -ludev
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
|