Optimisation of --disable-webserver

Do not compile miniserver.c if --disable-webserver is used.
This commit is contained in:
Fabrice Fontaine 2012-03-09 16:45:48 +01:00
parent 601332f88f
commit 72eecacf56
3 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,12 @@
Version 1.6.16 Version 1.6.16
******************************************************************************* *******************************************************************************
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Optimisation of --disable-webserver
Do not compile miniserver.c if --disable-webserver is used.
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com> 2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Adding configure options Adding configure options

View File

@ -616,8 +616,8 @@ int UpnpFinish(void)
UpnpUnRegisterClient(client_handle); UpnpUnRegisterClient(client_handle);
#endif #endif
TimerThreadShutdown(&gTimerThread); TimerThreadShutdown(&gTimerThread);
StopMiniServer();
#if EXCLUDE_WEB_SERVER == 0 #if EXCLUDE_WEB_SERVER == 0
StopMiniServer();
web_server_destroy(); web_server_destroy();
#endif #endif
ThreadPoolShutdown(&gMiniServerThreadPool); ThreadPoolShutdown(&gMiniServerThreadPool);

View File

@ -32,6 +32,8 @@
#include "config.h" #include "config.h"
#if EXCLUDE_MINISERVER == 0
/*! /*!
* \file * \file
* *
@ -970,3 +972,4 @@ int StopMiniServer()
return 0; return 0;
} }
#endif /* EXCLUDE_MINISERVER */