Skip to content

Commit

Permalink
compile libwebsockets with server (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang authored and minggo committed Nov 4, 2019
1 parent 27e72fc commit 78d8bf5
Show file tree
Hide file tree
Showing 19 changed files with 11,742 additions and 1,852 deletions.
2,177 changes: 1,884 additions & 293 deletions android/arm64-v8a/include/websockets/libwebsockets.h

Large diffs are not rendered by default.

71 changes: 55 additions & 16 deletions android/arm64-v8a/include/websockets/lws_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#endif
#endif

#define LWS_INSTALL_DATADIR "/Users/james/Project/cocos2d-x-3rd-party-libs-src/contrib/install-android/arm/share"
#define LWS_INSTALL_DATADIR "/Users/cocos/Github/cocos2d-x-3rd-party-libs-src/contrib/install-android/arm64/share"

/* Define to 1 to use wolfSSL/CyaSSL as a replacement for OpenSSL.
* LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
Expand All @@ -15,25 +15,27 @@
/* Also define to 1 (in addition to USE_WOLFSSL) when using the
(older) CyaSSL library */
/* #undef USE_OLD_CYASSL */
/* #undef LWS_WITH_BORINGSSL */

/* #undef LWS_USE_MBEDTLS */
/* #undef LWS_USE_POLARSSL */
/* #undef LWS_WITH_MBEDTLS */
/* #undef LWS_WITH_POLARSSL */
/* #undef LWS_WITH_ESP8266 */
/* #undef LWS_WITH_ESP32 */

/* #undef LWS_WITH_PLUGINS */
/* #undef LWS_WITH_NO_LOGS */

/* The Libwebsocket version */
#define LWS_LIBRARY_VERSION "2.1.0"
#define LWS_LIBRARY_VERSION "2.4.2"

#define LWS_LIBRARY_VERSION_MAJOR 2
#define LWS_LIBRARY_VERSION_MINOR 1
#define LWS_LIBRARY_VERSION_PATCH 0
#define LWS_LIBRARY_VERSION_MINOR 4
#define LWS_LIBRARY_VERSION_PATCH 2
/* LWS_LIBRARY_VERSION_NUMBER looks like 1005001 for e.g. version 1.5.1 */
#define LWS_LIBRARY_VERSION_NUMBER (LWS_LIBRARY_VERSION_MAJOR*1000000)+(LWS_LIBRARY_VERSION_MINOR*1000)+LWS_LIBRARY_VERSION_PATCH

/* The current git commit hash that we're building from */
#define LWS_BUILD_HASH "james@James-Chen.local-v3.4-138-g60b1a6f"
#define LWS_BUILD_HASH "cocos@cocoss-MacBook-Pro.local-v3.4-182-g408ba56"

/* Build with OpenSSL support */
#define LWS_OPENSSL_SUPPORT
Expand All @@ -48,19 +50,22 @@
/* #undef LWS_NO_EXTENSIONS */

/* Enable libev io loop */
/* #undef LWS_USE_LIBEV */
/* #undef LWS_WITH_LIBEV */

/* Enable libuv io loop */
/* #undef LWS_USE_LIBUV */
#define LWS_WITH_LIBUV

/* Enable libevent io loop */
/* #undef LWS_WITH_LIBEVENT */

/* Build with support for ipv6 */
#define LWS_USE_IPV6
#define LWS_WITH_IPV6

/* Build with support for UNIX domain socket */
/* #undef LWS_USE_UNIX_SOCK */
/* #undef LWS_WITH_UNIX_SOCK */

/* Build with support for HTTP2 */
/* #undef LWS_USE_HTTP2 */
/* #undef LWS_WITH_HTTP2 */

/* Turn on latency measuring code */
/* #undef LWS_LATENCY */
Expand All @@ -69,7 +74,7 @@
#define LWS_NO_DAEMONIZE

/* Build without server support */
#define LWS_NO_SERVER
/* #undef LWS_NO_SERVER */

/* Build without client support */
/* #undef LWS_NO_CLIENT */
Expand All @@ -85,8 +90,9 @@

/* SSL server using ECDH certificate */
/* #undef LWS_SSL_SERVER_WITH_ECDH_CERT */
#define LWS_HAVE_SSL_CTX_set1_param
#define LWS_HAVE_X509_VERIFY_PARAM_set1_host
/* #undef LWS_HAVE_SSL_CTX_set1_param */
/* #undef LWS_HAVE_X509_VERIFY_PARAM_set1_host */
/* #undef LWS_HAVE_RSA_SET0_KEY */

/* #undef LWS_HAVE_UV_VERSION_H */

Expand All @@ -99,19 +105,52 @@
/* HTTP Proxy support */
/* #undef LWS_WITH_HTTP_PROXY */

/* HTTP Ranges support */
#define LWS_WITH_RANGES

/* Http access log support */
/* #undef LWS_WITH_ACCESS_LOG */
/* #undef LWS_WITH_SERVER_STATUS */

/* #undef LWS_WITH_STATEFUL_URLDECODE */
/* #undef LWS_WITH_PEER_LIMITS */

/* Maximum supported service threads */
#define LWS_MAX_SMP 32
#define LWS_MAX_SMP 1

/* Lightweight JSON Parser */
/* #undef LWS_WITH_LEJP */

/* SMTP */
/* #undef LWS_WITH_SMTP */

/* OPTEE */
/* #undef LWS_PLAT_OPTEE */

/* ZIP FOPS */
#define LWS_WITH_ZIP_FOPS
#define LWS_HAVE_STDINT_H

/* #undef LWS_AVOID_SIGPIPE_IGN */

/* #undef LWS_FALLBACK_GETHOSTBYNAME */

/* #undef LWS_WITH_STATS */
/* #undef LWS_WITH_SOCKS5 */

#define LWS_HAVE_SYS_CAPABILITY_H
/* #undef LWS_HAVE_LIBCAP */

#define LWS_HAVE_ATOLL
/* #undef LWS_HAVE__ATOI64 */
/* #undef LWS_HAVE__STAT32I64 */

/* OpenSSL various APIs */

/* #undef LWS_HAVE_TLS_CLIENT_METHOD */
/* #undef LWS_HAVE_TLSV1_2_CLIENT_METHOD */
/* #undef LWS_HAVE_SSL_SET_INFO_CALLBACK */

#define LWS_HAS_INTPTR_T


Binary file modified android/arm64-v8a/libwebsockets.a
Binary file not shown.
Loading

0 comments on commit 78d8bf5

Please sign in to comment.