diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2015-07-15 13:25:52 +0200 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2015-07-15 13:25:52 +0200 |
commit | 08badff69122783bc4b419c02e27afd35c67f9d2 (patch) | |
tree | ac2328b6b79087ded2b8112303a870e9ab42e7ec | |
parent | 15faee53475e9093b8f810a04e7297a5599aae8a (diff) | |
parent | 1ea4110be99e8a54d227c34a929d9f6f02d0cc59 (diff) |
Merge pull request #7512 from Montellese/Isengard_fix_no_webserver
fix building with --disable-webserver
-rw-r--r-- | Makefile.in | 7 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | xbmc/interfaces/legacy/wsgi/WsgiErrorStream.h | 4 | ||||
-rw-r--r-- | xbmc/interfaces/legacy/wsgi/WsgiInputStream.h | 4 | ||||
-rw-r--r-- | xbmc/interfaces/legacy/wsgi/WsgiResponse.h | 4 | ||||
-rw-r--r-- | xbmc/interfaces/legacy/wsgi/WsgiResponseBody.h | 4 | ||||
-rw-r--r-- | xbmc/utils/HttpRangeUtils.cpp | 10 | ||||
-rw-r--r-- | xbmc/utils/HttpRangeUtils.h | 5 |
8 files changed, 23 insertions, 20 deletions
diff --git a/Makefile.in b/Makefile.in index 9eaa40e972..c88f85b563 100644 --- a/Makefile.in +++ b/Makefile.in @@ -53,6 +53,8 @@ DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \ xbmc/interfaces/info/info.a \ xbmc/interfaces/interfaces.a \ xbmc/interfaces/json-rpc/json-rpc.a \ + xbmc/interfaces/legacy/legacy.a \ + xbmc/interfaces/python/python_binding.a \ xbmc/linux/linux.a \ xbmc/listproviders/listproviders.a \ xbmc/media/media.a \ @@ -104,14 +106,11 @@ NWAOBJSXBMC= xbmc/threads/threads.a \ ifeq (@USE_WEB_SERVER@,1) +DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/wsgi/legacy-wsgi.a DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/python/httprequesthandlers-python.a endif -DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/legacy.a -DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/wsgi/legacy-wsgi.a -DIRECTORY_ARCHIVES += xbmc/interfaces/python/python_binding.a - ifeq (@USE_OPENGL@,1) DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a endif diff --git a/configure.ac b/configure.ac index 71883d23e5..1fa050ee5d 100644 --- a/configure.ac +++ b/configure.ac @@ -2475,7 +2475,6 @@ OUTPUT_FILES="Makefile \ xbmc/input/linux/Makefile \ xbmc/interfaces/Makefile \ xbmc/network/Makefile \ - xbmc/network/httprequesthandler/python/Makefile \ xbmc/network/upnp/Makefile \ lib/libexif/Makefile \ lib/libhdhomerun/Makefile \ @@ -2534,6 +2533,10 @@ OUTPUT_FILES="Makefile \ tools/android/packaging/xbmc/strings.xml \ addons/xbmc.addon/addon.xml" +if test "$use_webserver" = "yes"; then +OUTPUT_FILES="$OUTPUT_FILES xbmc/network/httprequesthandler/python/Makefile" +fi + if test "$use_wayland" = "yes"; then OUTPUT_FILES="$OUTPUT_FILES xbmc/windowing/tests/wayland/Makefile" fi diff --git a/xbmc/interfaces/legacy/wsgi/WsgiErrorStream.h b/xbmc/interfaces/legacy/wsgi/WsgiErrorStream.h index 1b64776bd1..7b4a972c4b 100644 --- a/xbmc/interfaces/legacy/wsgi/WsgiErrorStream.h +++ b/xbmc/interfaces/legacy/wsgi/WsgiErrorStream.h @@ -66,8 +66,6 @@ namespace XBMCAddon HTTPPythonRequest* m_request; #endif - }; + }; } } - - diff --git a/xbmc/interfaces/legacy/wsgi/WsgiInputStream.h b/xbmc/interfaces/legacy/wsgi/WsgiInputStream.h index a5df13afa2..7343bfa95d 100644 --- a/xbmc/interfaces/legacy/wsgi/WsgiInputStream.h +++ b/xbmc/interfaces/legacy/wsgi/WsgiInputStream.h @@ -93,8 +93,6 @@ namespace XBMCAddon HTTPPythonRequest* m_request; #endif - }; + }; } } - - diff --git a/xbmc/interfaces/legacy/wsgi/WsgiResponse.h b/xbmc/interfaces/legacy/wsgi/WsgiResponse.h index b4b089d9a1..1b78d01ec8 100644 --- a/xbmc/interfaces/legacy/wsgi/WsgiResponse.h +++ b/xbmc/interfaces/legacy/wsgi/WsgiResponse.h @@ -57,8 +57,6 @@ namespace XBMCAddon WsgiResponseBody m_body; #endif - }; + }; } } - - diff --git a/xbmc/interfaces/legacy/wsgi/WsgiResponseBody.h b/xbmc/interfaces/legacy/wsgi/WsgiResponseBody.h index aa43290a5a..a64eed76ac 100644 --- a/xbmc/interfaces/legacy/wsgi/WsgiResponseBody.h +++ b/xbmc/interfaces/legacy/wsgi/WsgiResponseBody.h @@ -42,8 +42,6 @@ namespace XBMCAddon #ifndef SWIG String m_data; #endif - }; + }; } } - - diff --git a/xbmc/utils/HttpRangeUtils.cpp b/xbmc/utils/HttpRangeUtils.cpp index 1660198d7f..3f2daf7094 100644 --- a/xbmc/utils/HttpRangeUtils.cpp +++ b/xbmc/utils/HttpRangeUtils.cpp @@ -18,14 +18,16 @@ * */ +#include <algorithm> + #include "HttpRangeUtils.h" #include "Util.h" +#ifdef HAS_WEB_SERVER #include "network/httprequesthandler/IHTTPRequestHandler.h" +#endif // HAS_WEB_SERVER #include "utils/StringUtils.h" #include "utils/Variant.h" -#include <algorithm> - #define HEADER_NEWLINE "\r\n" #define HEADER_SEPARATOR HEADER_NEWLINE HEADER_NEWLINE #define HEADER_BOUNDARY "--" @@ -370,6 +372,8 @@ std::string HttpRangeUtils::GenerateContentRangeHeaderValue(uint64_t start, uint return StringUtils::Format(CONTENT_RANGE_FORMAT_TOTAL_UNKNOWN, start, end); } +#ifdef HAS_WEB_SERVER + std::string HttpRangeUtils::GenerateMultipartBoundary() { static char chars[] = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; @@ -431,3 +435,5 @@ std::string HttpRangeUtils::GenerateMultipartBoundaryEnd(const std::string& mult return HEADER_NEWLINE HEADER_BOUNDARY + multipartBoundary + HEADER_BOUNDARY; } + +#endif // HAS_WEB_SERVER diff --git a/xbmc/utils/HttpRangeUtils.h b/xbmc/utils/HttpRangeUtils.h index c8a1424993..ec9d4fe57e 100644 --- a/xbmc/utils/HttpRangeUtils.h +++ b/xbmc/utils/HttpRangeUtils.h @@ -24,6 +24,8 @@ #include <string> #include <vector> +#include "system.h" + class CHttpRange { public: @@ -136,6 +138,7 @@ public: */ static std::string GenerateContentRangeHeaderValue(uint64_t start, uint64_t end, uint64_t total); +#ifdef HAS_WEB_SERVER /*! * \brief Generates a multipart boundary that can be used in ranged HTTP * responses. @@ -195,5 +198,5 @@ public: * \return Multipart boundary end that can be used in a ranged HTTP response */ static std::string GenerateMultipartBoundaryEnd(const std::string& multipartBoundary); +#endif // HAS_WEB_SERVER }; - |