Skip to content
Snippets Groups Projects
Commit d8dfb1b5 authored by Sébastien Blin's avatar Sébastien Blin Committed by Ming Rui Zhang
Browse files

pupnp: disable integrated mini web server

This fix a huge CPU consumption for mobile devices and we doesn't need
any server that serve UPnP related documents

Change-Id: I6eee8d9b14b710a7b1be237612f514abff23198d
parent 2b5627c6
Branches
Tags
No related merge requests found
......@@ -2597,7 +2597,7 @@ Subject: [PATCH] Windows patch.
+
+/** Defined to 1 if the library has been compiled with integrated web server
+ * (i.e. configure --enable-webserver --enable-device) */
+#define UPNP_HAVE_WEBSERVER 1
+#define UPNP_HAVE_WEBSERVER 0
+
+/** Defined to 1 if the library has been compiled with the SSDP part enabled
+ * (i.e. configure --enable-ssdp) */
......@@ -2898,7 +2898,7 @@ Subject: [PATCH] Windows patch.
+#define UPNP_HAVE_TOOLS 1
+
+/* see upnpconfig.h */
+#define UPNP_HAVE_WEBSERVER 1
+#define UPNP_HAVE_WEBSERVER 0
+
+/* whether the system defaults to 32bit off_t but can do 64bit when requested
+ */
......
......@@ -25,10 +25,10 @@ endif
.upnp: upnp
ifdef HAVE_WIN32
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --without-documentation $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-webserver --without-documentation $(HOSTCONF)
else
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --without-documentation $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-webserver --without-documentation $(HOSTCONF)
endif
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment