2015-06-24 17:48:52 +02:00
|
|
|
/* lws_config.h Generated from lws_config.h.in */
|
2013-02-06 15:25:26 +09:00
|
|
|
|
2015-04-22 10:52:13 -07:00
|
|
|
#ifndef NDEBUG
|
|
|
|
#ifndef _DEBUG
|
|
|
|
#define _DEBUG
|
|
|
|
#endif
|
2013-02-22 09:28:13 +08:00
|
|
|
#endif
|
|
|
|
|
2016-07-06 10:48:41 +08:00
|
|
|
#define LWS_INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share"
|
|
|
|
|
2015-08-09 22:56:32 +02:00
|
|
|
/* Define to 1 to use wolfSSL/CyaSSL as a replacement for OpenSSL.
|
2013-02-06 15:26:58 +09:00
|
|
|
* LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
|
2015-08-08 18:54:49 +02:00
|
|
|
#cmakedefine USE_WOLFSSL
|
2013-02-06 15:25:26 +09:00
|
|
|
|
2015-08-09 22:56:32 +02:00
|
|
|
/* Also define to 1 (in addition to USE_WOLFSSL) when using the
|
|
|
|
(older) CyaSSL library */
|
|
|
|
#cmakedefine USE_OLD_CYASSL
|
|
|
|
|
2016-03-28 19:58:02 +08:00
|
|
|
#cmakedefine LWS_USE_MBEDTLS
|
|
|
|
#cmakedefine LWS_USE_POLARSSL
|
2016-07-23 14:18:25 +08:00
|
|
|
#cmakedefine LWS_WITH_ESP8266
|
2016-03-28 19:58:02 +08:00
|
|
|
|
2016-04-06 16:15:40 +08:00
|
|
|
#cmakedefine LWS_WITH_PLUGINS
|
2016-07-23 14:18:25 +08:00
|
|
|
#cmakedefine LWS_WITH_NO_LOGS
|
2016-04-06 16:15:40 +08:00
|
|
|
|
2013-02-06 15:26:58 +09:00
|
|
|
/* The Libwebsocket version */
|
|
|
|
#cmakedefine LWS_LIBRARY_VERSION "${LWS_LIBRARY_VERSION}"
|
|
|
|
|
2015-12-14 17:25:29 +00:00
|
|
|
#define LWS_LIBRARY_VERSION_MAJOR ${LWS_LIBRARY_VERSION_MAJOR}
|
|
|
|
#define LWS_LIBRARY_VERSION_MINOR ${LWS_LIBRARY_VERSION_MINOR}
|
|
|
|
#define LWS_LIBRARY_VERSION_PATCH ${LWS_LIBRARY_VERSION_PATCH}
|
|
|
|
/* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */
|
2015-12-19 01:26:53 +00:00
|
|
|
#define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR*1000000)+(LWS_LIBRARY_VERSION_MINOR*1000)+LWS_LIBRARY_VERSION_PATCH
|
2015-12-14 17:25:29 +00:00
|
|
|
|
2013-02-06 15:26:58 +09:00
|
|
|
/* The current git commit hash that we're building from */
|
|
|
|
#cmakedefine LWS_BUILD_HASH "${LWS_BUILD_HASH}"
|
|
|
|
|
2013-02-06 15:27:27 +09:00
|
|
|
/* Build with OpenSSL support */
|
2013-02-06 15:26:58 +09:00
|
|
|
#cmakedefine LWS_OPENSSL_SUPPORT
|
|
|
|
|
2014-03-15 10:39:29 +08:00
|
|
|
/* The client should load and trust CA root certs it finds in the OS */
|
|
|
|
#cmakedefine LWS_SSL_CLIENT_USE_OS_CA_CERTS
|
|
|
|
|
2013-02-06 15:27:27 +09:00
|
|
|
/* Sets the path where the client certs should be installed. */
|
|
|
|
#cmakedefine LWS_OPENSSL_CLIENT_CERTS "${LWS_OPENSSL_CLIENT_CERTS}"
|
|
|
|
|
|
|
|
/* Turn off websocket extensions */
|
|
|
|
#cmakedefine LWS_NO_EXTENSIONS
|
|
|
|
|
2014-03-23 13:25:07 +08:00
|
|
|
/* Enable libev io loop */
|
|
|
|
#cmakedefine LWS_USE_LIBEV
|
|
|
|
|
2016-02-14 09:27:41 +08:00
|
|
|
/* Enable libuv io loop */
|
|
|
|
#cmakedefine LWS_USE_LIBUV
|
|
|
|
|
2014-03-24 16:09:25 +08:00
|
|
|
/* Build with support for ipv6 */
|
2014-03-24 16:09:25 +08:00
|
|
|
#cmakedefine LWS_USE_IPV6
|
2014-03-24 16:09:25 +08:00
|
|
|
|
2016-03-30 22:47:02 -07:00
|
|
|
/* Build with support for UNIX domain socket */
|
|
|
|
#cmakedefine LWS_USE_UNIX_SOCK
|
|
|
|
|
2014-04-03 14:33:48 +08:00
|
|
|
/* Build with support for HTTP2 */
|
|
|
|
#cmakedefine LWS_USE_HTTP2
|
|
|
|
|
2013-02-06 15:27:27 +09:00
|
|
|
/* Turn on latency measuring code */
|
|
|
|
#cmakedefine LWS_LATENCY
|
|
|
|
|
|
|
|
/* Don't build the daemonizeation api */
|
|
|
|
#cmakedefine LWS_NO_DAEMONIZE
|
|
|
|
|
2013-02-06 15:29:59 +09:00
|
|
|
/* Build without server support */
|
|
|
|
#cmakedefine LWS_NO_SERVER
|
|
|
|
|
|
|
|
/* Build without client support */
|
|
|
|
#cmakedefine LWS_NO_CLIENT
|
|
|
|
|
2013-02-06 15:27:27 +09:00
|
|
|
/* If we should compile with MinGW support */
|
|
|
|
#cmakedefine LWS_MINGW_SUPPORT
|
|
|
|
|
|
|
|
/* Use the BSD getifaddrs that comes with libwebsocket, for uclibc support */
|
|
|
|
#cmakedefine LWS_BUILTIN_GETIFADDRS
|
|
|
|
|
2015-10-15 11:20:40 +08:00
|
|
|
/* use SHA1() not internal libwebsockets_SHA1 */
|
|
|
|
#cmakedefine LWS_SHA1_USE_OPENSSL_NAME
|
2015-10-20 13:10:33 +03:00
|
|
|
|
2016-01-15 16:21:51 +08:00
|
|
|
/* SSL server using ECDH certificate */
|
|
|
|
#cmakedefine LWS_SSL_SERVER_WITH_ECDH_CERT
|
2016-04-13 22:17:05 +02:00
|
|
|
#cmakedefine LWS_HAVE_SSL_CTX_set1_param
|
2016-06-28 19:50:40 +08:00
|
|
|
#cmakedefine LWS_HAVE_X509_VERIFY_PARAM_set1_host
|
2016-01-15 16:21:51 +08:00
|
|
|
|
2016-10-05 13:49:46 +08:00
|
|
|
#cmakedefine LWS_HAVE_UV_VERSION_H
|
|
|
|
|
2016-02-21 21:25:48 +08:00
|
|
|
/* CGI apis */
|
|
|
|
#cmakedefine LWS_WITH_CGI
|
|
|
|
|
2016-03-12 08:37:36 +08:00
|
|
|
/* whether the Openssl is recent enough, and / or built with, ecdh */
|
|
|
|
#cmakedefine LWS_HAVE_OPENSSL_ECDH_H
|
|
|
|
|
2016-03-20 11:59:53 +08:00
|
|
|
/* HTTP Proxy support */
|
|
|
|
#cmakedefine LWS_WITH_HTTP_PROXY
|
|
|
|
|
2016-04-15 12:00:23 +08:00
|
|
|
/* Http access log support */
|
|
|
|
#cmakedefine LWS_WITH_ACCESS_LOG
|
2016-04-15 14:01:29 +08:00
|
|
|
#cmakedefine LWS_WITH_SERVER_STATUS
|
2016-04-15 12:00:23 +08:00
|
|
|
|
2016-06-08 10:07:02 +08:00
|
|
|
#cmakedefine LWS_WITH_STATEFUL_URLDECODE
|
|
|
|
|
2016-01-19 03:34:24 +08:00
|
|
|
/* Maximum supported service threads */
|
|
|
|
#define LWS_MAX_SMP ${LWS_MAX_SMP}
|
|
|
|
|
2016-05-10 09:47:10 +08:00
|
|
|
/* Lightweight JSON Parser */
|
|
|
|
#cmakedefine LWS_WITH_LEJP
|
|
|
|
|
2016-06-07 09:49:59 +08:00
|
|
|
/* SMTP */
|
|
|
|
#cmakedefine LWS_WITH_SMTP
|
|
|
|
|
2017-04-06 09:02:58 +08:00
|
|
|
/* OpenSSL various APIs */
|
|
|
|
|
|
|
|
#cmakedefine LWS_HAVE_TLS_CLIENT_METHOD
|
|
|
|
#cmakedefine LWS_HAVE_TLSV1_2_CLIENT_METHOD
|
|
|
|
|
2015-10-20 13:10:33 +03:00
|
|
|
${LWS_SIZEOFPTR_CODE}
|