From 6e1e387174d20fb62a804b6e27438bcc5ea59f28 Mon Sep 17 00:00:00 2001 From: Steven Ceuppens Date: Fri, 27 Sep 2013 14:27:27 +0200 Subject: Changes to integrate the websocket module as a full Qt Add-On module - Changed project files to use Qt structure - Moved existing sources into subdirectory, to make room for moduels - Created a "import/qmlwebsocket" module skeleton (works, but needs to be extended) - Modified examples to not use "include(.pri)", but use "QT += websocket" - Added qml example skeleton (works, but no useful functionality yet) Project can be build with: $ qmake $ make $ make install Module can be used in other projects with QT += websockets Change-Id: I2123026958b264670dbf8a978dee76edf5855806 Reviewed-by: Kurt Pattyn --- src/websockets/websockets.pro | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/websockets/websockets.pro (limited to 'src/websockets/websockets.pro') diff --git a/src/websockets/websockets.pro b/src/websockets/websockets.pro new file mode 100644 index 0000000..69ddc9c --- /dev/null +++ b/src/websockets/websockets.pro @@ -0,0 +1,45 @@ +QT += network + +TARGET = QtWebSockets + +TEMPLATE += lib + +DEFINES += QTWEBSOCKETS_LIBRARY + +load(qt_module) + +QMAKE_DOCS = $$PWD/doc/qwebsockets.qdocconfig + +PUBLIC_HEADERS += \ + $$PWD/qwebsocket.h \ + $$PWD/qwebsocketserver.h \ + $$PWD/qwebsocketprotocol.h \ + $$PWD/qwebsocketsglobal.h \ + $$PWD/qcorsauthenticator.h + +PRIVATE_HEADERS += \ + $$PWD/qwebsocket_p.h \ + $$PWD/qwebsocketserver_p.h \ + $$PWD/handshakerequest_p.h \ + $$PWD/handshakeresponse_p.h \ + $$PWD/dataprocessor_p.h \ + $$PWD/qcorsauthenticator_p.h + +SOURCES += \ + $$PWD/qwebsocket.cpp \ + $$PWD/qwebsocket_p.cpp \ + $$PWD/qwebsocketserver.cpp \ + $$PWD/qwebsocketserver_p.cpp \ + $$PWD/qwebsocketprotocol.cpp \ + $$PWD/handshakerequest_p.cpp \ + $$PWD/handshakeresponse_p.cpp \ + $$PWD/dataprocessor_p.cpp \ + $$PWD/qcorsauthenticator.cpp + +HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS + +#mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET +#mac:QMAKE_CXXFLAGS += -Wall -Werror -Wextra + + + -- cgit v1.2.1