mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-30 09:10:53 +02:00
Update QxtWeb
This commit is contained in:
55
thirdparty/qxt/qxtweb-standalone/CMakeLists.txt
vendored
55
thirdparty/qxt/qxtweb-standalone/CMakeLists.txt
vendored
@@ -22,6 +22,16 @@ ADD_DEFINITIONS( -DBUILD_QXT_CORE -DBUILD_QXT_WEB )
|
||||
|
||||
INCLUDE_DIRECTORIES( ${qxtweb} )
|
||||
|
||||
macro(create_qxtweb_fancy_header simpleHeader fancyHeader)
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/QxtWeb/${fancyHeader} "#include \"${simpleHeader}\"" )
|
||||
endmacro()
|
||||
|
||||
create_qxtweb_fancy_header("qxtabstracthttpconnector.h" "QxtHttpServerConnector")
|
||||
create_qxtweb_fancy_header("qxthttpsessionmanager.h" "HttpSessionManager")
|
||||
create_qxtweb_fancy_header("qxthttpsessionmanager.h" "QxtHttpSessionManager")
|
||||
create_qxtweb_fancy_header("qxtwebcontent.h" "QxtWebContent")
|
||||
create_qxtweb_fancy_header("qxtwebslotservice.h" "QxtWebSlotService")
|
||||
create_qxtweb_fancy_header("qxtwebevent.h" "QxtWebPageEvent")
|
||||
|
||||
SET( sources
|
||||
# QxtWeb:
|
||||
@@ -37,40 +47,20 @@ SET( sources
|
||||
${qxtweb}/qxtwebservicedirectory.cpp
|
||||
${qxtweb}/qxtwebslotservice.cpp
|
||||
${qxtweb}/qxtwebcgiservice.cpp
|
||||
${qxtweb}/qhttpheader.cpp
|
||||
|
||||
# Ripped bits of QxtCore:
|
||||
${qxtweb}/qxtmetaobject.cpp
|
||||
${qxtweb}/qxtnull.cpp
|
||||
)
|
||||
${qxtweb}/qxtfifo.cpp
|
||||
|
||||
SET( headers
|
||||
# QxtWeb:
|
||||
${qxtweb}/qxtabstracthttpconnector.h
|
||||
${qxtweb}/qxtabstractwebservice.h
|
||||
${qxtweb}/qxtabstractwebsessionmanager.h
|
||||
${qxtweb}/qxtabstractwebsessionmanager_p.h
|
||||
# ${qxtweb}/qxthtmltemplate.h
|
||||
${qxtweb}/qxthttpsessionmanager.h
|
||||
# ${qxtweb}/qxtweb.h
|
||||
${qxtweb}/qxtwebcontent.h
|
||||
# ${qxtweb}/qxtwebevent.h
|
||||
${qxtweb}/qxtwebservicedirectory.h
|
||||
${qxtweb}/qxtwebservicedirectory_p.h
|
||||
${qxtweb}/qxtwebslotservice.h
|
||||
${qxtweb}/qxtwebcgiservice.h
|
||||
${qxtweb}/qxtwebcgiservice_p.h
|
||||
# QxtNetwork
|
||||
${qxtweb}/qxtsslserver.cpp
|
||||
|
||||
# Ripped bits of QxtCore:
|
||||
# ${qxtweb}/qxtmetaobject.h
|
||||
# ${qxtweb}/qxtnullable.h
|
||||
# ${qxtweb}/qxtnull.h
|
||||
# automoc hack
|
||||
${qxtweb}/qxtboundfunction.h
|
||||
# ${qxtweb}/qxtboundfunctionbase.h
|
||||
# ${qxtweb}/qxtboundcfunction.h
|
||||
# ${qxtweb}/qxtmetatype.h
|
||||
)
|
||||
|
||||
qt4_wrap_cpp( mocstuff ${headers} )
|
||||
|
||||
# DLL on windows due to linker issues, otherwise static
|
||||
IF(WIN32)
|
||||
@@ -97,17 +87,4 @@ target_link_libraries( qxtweb-standalone
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
# Also build small example app from qxt demos:
|
||||
|
||||
#qt4_wrap_cpp( mocex "example/myservice.h" )
|
||||
|
||||
#ADD_EXECUTABLE( example-webserver
|
||||
# ${mocex}
|
||||
# example/main.cpp
|
||||
# example/myservice.h
|
||||
# )
|
||||
|
||||
#TARGET_LINK_LIBRARIES( example-webserver
|
||||
# ${QT_LIBRARIES}
|
||||
# "${CMAKE_CURRENT_SOURCE_DIR}/libqxtweb-standalone.a"
|
||||
# )
|
||||
set_target_properties(qxtweb-standalone PROPERTIES AUTOMOC TRUE)
|
||||
|
Reference in New Issue
Block a user