Fix build with non-OpenSSL SSL-enabled backends
[contrib/qtwebsockets.git] / src / websockets / websockets.pro
index 69ddc9c..b9a513b 100644 (file)
@@ -1,29 +1,30 @@
-QT += network
-
 TARGET = QtWebSockets
 
-TEMPLATE += lib
-
-DEFINES += QTWEBSOCKETS_LIBRARY
-
-load(qt_module)
+QT = core-private network
 
-QMAKE_DOCS = $$PWD/doc/qwebsockets.qdocconfig
+QMAKE_DOCS = $$PWD/doc/qtwebsockets.qdocconf
+OTHER_FILES += doc/src/*.qdoc   # show .qdoc files in Qt Creator
+OTHER_FILES += doc/snippets/*.cpp
+OTHER_FILES += doc/qtwebsockets.qdocconf
 
 PUBLIC_HEADERS += \
+    $$PWD/qwebsockets_global.h \
     $$PWD/qwebsocket.h \
     $$PWD/qwebsocketserver.h \
     $$PWD/qwebsocketprotocol.h \
-    $$PWD/qwebsocketsglobal.h \
-    $$PWD/qcorsauthenticator.h
+    $$PWD/qwebsocketcorsauthenticator.h \
+    $$PWD/qmaskgenerator.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
+    $$PWD/qwebsocketprotocol_p.h \
+    $$PWD/qwebsockethandshakerequest_p.h \
+    $$PWD/qwebsockethandshakeresponse_p.h \
+    $$PWD/qwebsocketdataprocessor_p.h \
+    $$PWD/qwebsocketcorsauthenticator_p.h \
+    $$PWD/qwebsocketframe_p.h \
+    $$PWD/qdefaultmaskgenerator_p.h
 
 SOURCES += \
     $$PWD/qwebsocket.cpp \
@@ -31,15 +32,19 @@ SOURCES += \
     $$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
+    $$PWD/qwebsockethandshakerequest.cpp \
+    $$PWD/qwebsockethandshakeresponse.cpp \
+    $$PWD/qwebsocketdataprocessor.cpp \
+    $$PWD/qwebsocketcorsauthenticator.cpp \
+    $$PWD/qwebsocketframe.cpp \
+    $$PWD/qmaskgenerator.cpp \
+    $$PWD/qdefaultmaskgenerator_p.cpp
+
+contains(QT_CONFIG, ssl) | contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
+    SOURCES += $$PWD/qsslserver.cpp
+    PRIVATE_HEADERS += $$PWD/qsslserver_p.h
+}
 
 HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS
 
-#mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
-#mac:QMAKE_CXXFLAGS += -Wall -Werror -Wextra
-
-
-
+load(qt_module)