Fix build with non-OpenSSL SSL-enabled backends
[contrib/qtwebsockets.git] / src / websockets / websockets.pro
index 792c9ce..b9a513b 100644 (file)
@@ -1,11 +1,6 @@
-load(qt_build_config)
 TARGET = QtWebSockets
 
-QT = core network
-
-TEMPLATE = lib
-
-DEFINES += QTWEBSOCKETS_LIBRARY
+QT = core-private network
 
 QMAKE_DOCS = $$PWD/doc/qtwebsockets.qdocconf
 OTHER_FILES += doc/src/*.qdoc   # show .qdoc files in Qt Creator
@@ -17,7 +12,8 @@ PUBLIC_HEADERS += \
     $$PWD/qwebsocket.h \
     $$PWD/qwebsocketserver.h \
     $$PWD/qwebsocketprotocol.h \
-    $$PWD/qwebsocketcorsauthenticator.h
+    $$PWD/qwebsocketcorsauthenticator.h \
+    $$PWD/qmaskgenerator.h
 
 PRIVATE_HEADERS += \
     $$PWD/qwebsocket_p.h \
@@ -27,7 +23,8 @@ PRIVATE_HEADERS += \
     $$PWD/qwebsockethandshakeresponse_p.h \
     $$PWD/qwebsocketdataprocessor_p.h \
     $$PWD/qwebsocketcorsauthenticator_p.h \
-    $$PWD/qwebsocketframe_p.h
+    $$PWD/qwebsocketframe_p.h \
+    $$PWD/qdefaultmaskgenerator_p.h
 
 SOURCES += \
     $$PWD/qwebsocket.cpp \
@@ -39,9 +36,11 @@ SOURCES += \
     $$PWD/qwebsockethandshakeresponse.cpp \
     $$PWD/qwebsocketdataprocessor.cpp \
     $$PWD/qwebsocketcorsauthenticator.cpp \
-    $$PWD/qwebsocketframe.cpp
+    $$PWD/qwebsocketframe.cpp \
+    $$PWD/qmaskgenerator.cpp \
+    $$PWD/qdefaultmaskgenerator_p.cpp
 
-contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
+contains(QT_CONFIG, ssl) | contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
     SOURCES += $$PWD/qsslserver.cpp
     PRIVATE_HEADERS += $$PWD/qsslserver_p.h
 }