mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+libwebsockets.org
probs should be core, but I dunno.
This commit is contained in:
parent
870c381c26
commit
05cbd58da5
11
projects/libwebsockets.org/fixture.c
Normal file
11
projects/libwebsockets.org/fixture.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <openssl/ssl.h>
|
||||
#include <libwebsockets.h>
|
||||
|
||||
int main() {
|
||||
struct lws_context_creation_info info;
|
||||
memset(&info, 0, sizeof(info));
|
||||
struct lws_context *context;
|
||||
context = lws_create_context(&info);
|
||||
lws_context_destroy(context);
|
||||
return 0;
|
||||
}
|
36
projects/libwebsockets.org/package.yml
Normal file
36
projects/libwebsockets.org/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
distributable:
|
||||
url: https://github.com/warmcat/libwebsockets/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: warmcat/libwebsockets/tags
|
||||
|
||||
dependencies:
|
||||
libuv.org: 1
|
||||
libevent.org: 2
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: 3
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX="{{prefix}}" $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- -DLWS_IPV6=ON
|
||||
- -DLWS_WITH_HTTP2=ON
|
||||
- -DLWS_WITH_LIBEVENT=ON
|
||||
- -DLWS_WITH_LIBUV=ON
|
||||
- -DLWS_WITH_PLUGINS=ON
|
||||
- -DLWS_WITHOUT_TESTAPPS=ON
|
||||
- -DLWS_UNIX_SOCK=ON
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc fixture.c -lwebsockets
|
||||
./a.out
|
Loading…
Reference in a new issue