Commit graph

196 commits

Author SHA1 Message Date
wonder-mice
67e246fce9 Subject: [PATCH] Be quite when executing openssl commands 2015-04-23 06:13:05 +08:00
wonder-mice
dd32c24df6 refactor allow http parse also for client 2015-04-23 05:37:46 +08:00
Andy Green
16fb0132ce prepare for v1.4
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-03-28 11:35:40 +08:00
Roger A. Light
1677ca52ca Subject: [PATCH] Windows installer related fixes.
Remove incorrectly committed cpack changes.
Fix call to makensis.
Update README filenames.
2015-03-11 08:48:39 +08:00
Roger A. Light
12126d701e Add Windows installer file and configure appveyor to create it
Also update OpenSSL on Windows to latest version.
2015-03-10 21:18:22 +08:00
Roger Light
b8639543bc Subject: [PATCH] Simplify soversion. 2015-02-17 21:13:10 +08:00
Steven Lai
ba3c75c065 Add compiler checking for visibility flag
Signed-off-by: Steven Lai <steven.lai@liricco.com>
2015-01-27 19:46:26 +08:00
Quinlan Pfiffer
363420dff4 cmake ipv6 default to off
Signed-off-by: Quinlan Pfiffer <qpfiffer@gmail.com>
2015-01-26 11:24:03 +08:00
Alejandro Mery
cdc9717be1 Subject: [PATCH] Add custom allocator support using the realloc() interface
Signed-off-by: Alejandro Mery <amery@geeks.cl>
2014-12-05 07:25:24 +08:00
Samuel Martin
a11a28278f Subject: [PATCH] cmake: set the project language
By default, CMake sets C and C++ as languages used by the project.
This makes the configuration failed if no C++ compiler is found.

Since libwesockets in written in pure C, no C++, there is no reason to
disable it when the toolchain has no C++ support.

This patch just make the CMake code reflecting the real status of the
project with regard to the languages used.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2014-11-27 09:14:31 +08:00
Christoph Muellner
b921e521cd Subject: [PATCH] Adding lws_config.h to list of installed headers.
The lws_config.h is generated based on configuration
options for the build process. In order to write
applications which compile code depending of the
presence of a feature (like the test-server does)
this header file needs to be installed.

Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2014-11-27 06:25:16 +08:00
Joakim Soderberg
1632c9a894 CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
2014-11-26 01:22:50 +08:00
Joakim Soderberg
bf3e8a998e Subject: [PATCH] BUGFIX: Failed to get proper output dir for test-server
When creating the directory where to put the files needed by the test-server CMake would fail because it tried to create the directory /../share/libwebsockets-test-server, which is not possible. This happens since the TARGET_FILE_DIR for the test-server is not fetched properly.

Also mentioned in this trac ticket:
http://libwebsockets.org/trac/libwebsockets/ticket/84
2014-11-25 05:49:11 +08:00
Andy Green
7df53c5550 http2 alpn npn pollout
This adds npn / alpn support if your openssl can handle it.
Then, browsers that understand alpn will by default
negotiate http/1.1 and work as normal.

Clients that understand http2.0 can negotiate h2-14 and
use the basic but working http2.0 support automatically

Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-22 15:38:12 +08:00
Andy Green
2add6340d5 http2 hpack basic decode ok including huff
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-12 08:38:16 +08:00
Andy Green
024eb6c80c http2 can keep upgraded connection up
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-08 12:00:53 +08:00
Hiroaki Sakon
c00675cafb fix required CMake version
AG also updated the machine-readable min cmake version
2014-09-23 02:35:05 +08:00
Andy Green
9ffe40112b soname 5.0.0
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-18 23:21:28 +08:00
Joakim Soderberg
46e48868ac Turn off IPv6 in windows for now
It's horribly broken
AG: issue seems to be size of the addr struct as suggested on the list
2014-04-28 07:32:14 +08:00
Patrick Gansterer
1077e1f4d2 Fix include statement of in6addr.h
Only include it when CMake can find it. This works with MinGW and WinCE.
2014-04-15 18:38:54 +02:00
Andy Green
a717df2739 refactor libev eliminate all code ifdefs
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-11 13:14:37 +08:00
Joakim Soderberg
d2f5b199bc windows Fix build. 2014-04-07 13:13:45 +01:00
Andy Green
02138126f2 refactor add ssl read write single implementation
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-06 06:26:35 +01:00
Andy Green
2eedea9884 http2 add initial alpn support
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-03 14:33:48 +08:00
Andy Green
c57037a555 refactor ssl related code into ssl.c
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-03 10:17:00 +08:00
Andy Green
34f3dd2082 refactor pollfd related functions into pollfd.c
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-03 07:43:42 +08:00
Andy Green
d474135424 refactor service related functions into service.c
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-03 07:43:40 +08:00
Andy Green
3d67f515db refactor context related functions into context.c
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-03 07:29:50 +08:00
Andy Green
e40aa9b920 plat change to build selection by cmake
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-04-02 21:04:03 +08:00
Patrick Gansterer
73882e49fc Remove websock-w32.h 2014-03-29 08:25:58 +01:00
Patrick Gansterer
fc5734c339 Remove dummy headers for Windows 2014-03-29 07:43:38 +01:00
Patrick Gansterer
8df031d336 Remove emulated_poll on Windows 2014-03-29 07:15:40 +01:00
Andy Green
055f2979ec ipv6 integration fixes
Disable for build using -DLWS_IPV6= on the cmake line
2014-03-24 23:08:38 +08:00
James Devine
3f13ea2264 add ipv6 support
(changed to support runtime disable + integration by andy@warmcat.com)
2014-03-24 16:09:25 +08:00
Andrew Canaday
9769f4f293 libev port
merged by andy@warmcat.com via https://github.com/gaby64/libwebsockets-libev

To use, you need to both

 - cmake ---> -DLWS_USE_LIBEV=1

 - info->options must have LWS_SERVER_OPTION_LIBEV set when creating the context

this is so a single library can be built for distros to support apps that use
normal polling and apps that use libev polling.
2014-03-23 13:25:07 +08:00
Andy Green
d2ec7adbab ssl client use OS CA root certs by default
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-03-15 10:39:29 +08:00
Patrick Gansterer
e04ec35a43 Fix installation into relative installation directory
This is required to make the other CPack generators like "ZIP" work.
2014-03-03 20:09:55 +08:00
John Clark
388dc7d201 Fix cyassl flags, update documentation 2014-03-02 11:59:00 +08:00
Patrick Gansterer
61a6ae4f77 Check if getenv() exists
Do not call getenv() on platform which do not support it
2014-02-28 09:42:12 +08:00
Patrick Gansterer
5b71aac2ed Enable compilation on Windows CE
Add a few ifdefs to support this additional platform.
2014-02-28 09:01:06 +08:00
Patrick Gansterer
8a59033565 Fix type checks in CMake
Use CHECK_TYPE_SIZE to check existence of types.
2014-02-28 08:49:38 +08:00
Patrick Gansterer
92792b4eef Avoid calls to gettimeofday()
Add a new function to get the current time in microseconds, since gettimeofday() does not exist on Windows.
Keep the current implementation for the test applications.
2014-02-27 21:04:18 +08:00
Andy Green
0f3e41373b unconfuse quoting in CMakeLists.txtt
via Marjan Tomas https://github.com/warmcat/libwebsockets/issues/67

Signed-off-by: Andy Green <andy.green@linaro.org>
2014-02-27 07:28:45 +08:00
Andy Green
7f54e76f6d fix WITHOUT_CLIENT install in CMake
Via "DevYourWorld" on github

https://github.com/warmcat/libwebsockets/issues/64#issuecomment-35719084

Signed-off-by: Andy Green <andy.green@linaro.org>
2014-02-21 18:48:05 +08:00
Joakim Soderberg
6596e4b2f5 Fix compilation on Windows.
C89 which Microsofts compiler only support does not allow variable
declarations anywhere but at the start of a scope.

Also, only try to copy the test-server files if they actually exists. For
instance the OpenSSL cert generation fails if you run cmake under the git
bash shell on Windows (won't work with the unix method either) so that
file will be missing... This would result in a compilation error when
tests where turned on.
2014-02-19 08:37:50 +08:00
Andy Green
e919af8d18 update version in libwebsockets.pc
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-02-15 14:45:14 +08:00
Joakim Soderberg
67445557c2 cmake and other fixes 2014-02-15 13:48:56 +08:00
pmcdona
0a0a7ebc37 Trac 53 minw update
http://libwebsockets.org/trac/libwebsockets/ticket/53
2013-12-18 10:17:25 +08:00
Andreas Pakulat
7e8674007d Windows Fix installing the dll
Without a runtime install directory, cmake won't install the dll at
all. Only the import library was installed. So fix that.
2013-11-04 10:08:42 +08:00
Markus Elfring
299244f7fc fix cmake quoting
A few parameters (like "${PROJECT_BINARY_DIR}/lws_config.h" and "${PROJECT_SOURCE_DIR}/lib") are passed to CMake commands in your build script without enclosing them by quotation marks. I see that these places will result in build difficulties if the contents of the used variables will contain special characters like spaces.

Signed-off-by: Markus Elfring <markus.elfring@web.de>
2013-10-26 20:03:43 +08:00