diff options
author | Denis Shienkov <scapig@yandex.ru> | 2012-02-11 20:46:02 +0400 |
---|---|---|
committer | Denis Shienkov <scapig@yandex.ru> | 2012-02-29 18:36:49 +0100 |
commit | b8af6f604cd86897c8a04825700892fd9970a616 (patch) | |
tree | 818754c16460a321cb5fa2c212ef6e7bbf3dbd79 /src/src.pro | |
parent | a5183e74811fd23b2de1f30053fb39f1d3083d9f (diff) | |
download | qtserialport-b8af6f604cd86897c8a04825700892fd9970a616.tar.gz |
The first prepare QtSerialPort to the form of add-on, with the requirements of "Creating a new module or tool for Qt"
Change-Id: I62bba3590a8873bfd03ed6836ac105e0a30d35ba
Reviewed-by: Denis Shienkov <scapig@yandex.ru>
Diffstat (limited to 'src/src.pro')
-rw-r--r-- | src/src.pro | 91 |
1 files changed, 11 insertions, 80 deletions
diff --git a/src/src.pro b/src/src.pro index 3d12d55..fdd5378 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,87 +1,18 @@ TEMPLATE = lib -CONFIG += dll -#CONFIG += staticlib -QT -= gui -TARGET = SerialPort +TARGET = $$QT.serialport.name +MODULE = serialport -win32 { - DEFINES += SERIALPORT_BUILD SERIALPORT_SHARED -} +load(qt_module) +load(qt_module_config) -INCLUDEPATH += ../include -HEADERS += \ - ../include/serialport.h \ - ../include/serialportinfo.h - -HEADERS += \ - serialport_p.h \ - ringbuffer_p.h \ - serialportengine_p.h \ - serialportinfo_p.h - -SOURCES += \ - serialport.cpp \ - serialportinfo.cpp - -win32 { - HEADERS += \ - serialportengine_p_win.h - SOURCES += \ - serialportengine_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 - - HEADERS += \ - serialportengine_p_symbian.h - SOURCES += \ - serialportengine_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 \ - serialportengine_p_unix.h - SOURCES += \ - ttylocker_p_unix.cpp \ - serialportengine_p_unix.cpp - - macx { - SOURCES += serialportinfo_mac.cpp - LIBS += -framework IOKit -framework CoreFoundation - } else { - SOURCES += serialportinfo_unix.cpp - linux*:contains( DEFINES, HAVE_LIBUDEV ) { - LIBS += -ludev - } - } -} +DESTDIR = $$QT.serialport.libs +VERSION = $$QT.serialport.VERSION +DEFINES += QT_ADDON_SERIALPORT_LIB +CONFIG += module create_prl +MODULE_PRI = ../modules/qt_serialport.pri +include($$PWD/src-lib.pri) +mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$QT.serialport.name |