1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Joakim Soderberg f272cb0624 Fixed DLL compilation on Windows for CMake.
- Define LWS_DLL and LWS_INTERNAL when websockets_shared is compiled.

- The websocket_shared target compiles to websocket.lib / websocket.dll
  (websocket.lib contains the exported functions for websocket.dll, and is
  the file that is linked to when a program wants to use the dll)

- The websocket target compiles to websocket_static.lib on windows.

- Replaced any "extern" with "LWS_EXTERN" on libwebsockets.h for proper
  DLL function exports.

- Created a LIB_LIST with all the libwebsocket dependencies, instead of
  multiple calls to target_link_libraries, only one call is made for both
  the static and shared library version. This makes it easy to add other
  variants if wanted in the future.

- Added ZLIB as a dependency for the libs, so that the build order will be
  correct at all times.

- Added a dependency for the websockets lib to the test apps, so it is
  built before them.

- Fixed the test-server-extpoll app to include the emulated_poll, and link
  to winsock on Windows.

- Removed the global export of libwebsocket_internal_extensions, and added
  a function libwebsocket_get_internal_extensions() that returns it
  instead. Using the global would not work with the DLL export on Windows.
2013-02-13 09:29:26 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c fix ssl reject path for freeing header allocation 2013-02-11 21:43:41 +08:00
client-parser.c style cleanup 2013-02-11 17:13:32 +08:00
client.c eliminate snprintf 2013-02-12 10:13:12 +08:00
daemonize.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
getifaddrs.c style cleanup 2013-02-11 17:13:32 +08:00
getifaddrs.h style cleanup 2013-02-11 17:13:32 +08:00
handshake.c security harden http parser a bit 2013-02-12 12:55:40 +08:00
libwebsockets.c security harden http parser a bit 2013-02-12 12:55:40 +08:00
libwebsockets.h Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
Makefile.am disable fstack usage 2013-02-13 09:08:43 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c fix another escaape runon 2013-02-12 12:53:36 +08:00
parsers.c security disallow repeated GET 2013-02-12 14:16:06 +08:00
private-libwebsockets.h Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
server-handshake.c eliminate snprintf 2013-02-12 10:13:12 +08:00
server.c Fixed compilation on Windows. 2013-02-12 09:58:12 +08:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00