summaryrefslogtreecommitdiff
path: root/src/src.pro
diff options
context:
space:
mode:
authorDenis Shienkov <scapig2@yandex.ru>2011-10-02 15:05:59 +0400
committerDenis Shienkov <scapig2@yandex.ru>2011-10-02 15:05:59 +0400
commitc344b6c7c9d2d892ba0cb366e63b407e4203da20 (patch)
tree5d4ca909d06060368faaa0d2102de5a600a9b048 /src/src.pro
parent379c134d3de12ffad006dff00554e47849028eff (diff)
downloadqtserialport-c344b6c7c9d2d892ba0cb366e63b407e4203da20.tar.gz
Changed the *. pro, *. pri files of the project due to adding support for OS Symbian.
Diffstat (limited to 'src/src.pro')
-rw-r--r--src/src.pro81
1 files changed, 79 insertions, 2 deletions
diff --git a/src/src.pro b/src/src.pro
index c9ba8d4..142134f 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -1,10 +1,87 @@
TEMPLATE = lib
CONFIG += dll
+#CONFIG += staticlib
QT -= gui
TARGET = SerialPort
-include(src.pri)
-
win32 {
DEFINES += SERIALPORT_BUILD SERIALPORT_SHARED
}
+
+INCLUDEPATH += ../include
+HEADERS += \
+ ../include/serialport.h \
+ ../include/serialportinfo.h
+
+HEADERS += \
+ abstractserialport_p.h \
+ ringbuffer_p.h \
+ serialport_p.h \
+ serialportnotifier_p.h \
+ serialportinfo_p.h
+
+SOURCES += \
+ serialport.cpp \
+ serialport_p.cpp \
+ serialportinfo.cpp
+
+win32 {
+ SOURCES += \
+ serialport_p_win.cpp \
+ serialportnotifier_p_win.cpp \
+ serialportinfo_win.cpp
+
+ !wince*: LIBS += -lsetupapi -luuid -ladvapi32
+}
+
+symbian {
+ MMP_RULES += EXPORTUNFROZEN
+ #MMP_RULES += DEBUGGABLE_UDEBONLY
+ TARGET.UID3 = 0xE7E62DFD
+ TARGET.CAPABILITY =
+ TARGET.EPOCALLOWDLLDATA = 1
+ addFiles.sources = SerialPort.dll
+ addFiles.path = !:/sys/bin
+ DEPLOYMENT += addFiles
+
+ # FIXME !!!
+ #INCLUDEPATH += c:/Nokia/devices/Nokia_Symbian3_SDK_v1.0/epoc32/include/platform
+ INCLUDEPATH += c:/QtSDK/Symbian/SDKs/Symbian3Qt473/epoc32/include/platform
+
+ SOURCES += \
+ serialport_p_symbian.cpp \
+ serialportnotifier_p_symbian.cpp \
+ serialportinfo_symbian.cpp
+ LIBS += -leuser -lefsrv -lc32
+
+}
+
+unix:!symbian {
+ maemo5 {
+ target.path = /opt/usr/lib
+ } else {
+ target.path = /usr/lib
+ }
+ INSTALLS += target
+
+ HEADERS += \
+ ttylocker_p_unix.h
+ SOURCES += \
+ serialport_p_unix.cpp \
+ serialportnotifier_p_unix.cpp \
+ ttylocker_p_unix.cpp
+
+ macx {
+ SOURCES += serialportinfo_mac.cpp
+ LIBS += -framework IOKit -framework CoreFoundation
+ } else {
+ SOURCES += serialportinfo_unix.cpp
+ contains( DEFINES, HAVE_UDEV ) {
+ LIBS += -ludev
+ }
+ }
+}
+
+
+
+