mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-20 02:44:19 +01:00
scripts: enable ipv6 support for lws
This commit is contained in:
@@ -18,12 +18,12 @@ install: |
|
|||||||
pushd /tmp
|
pushd /tmp
|
||||||
curl -sLo- https://github.com/warmcat/libwebsockets/archive/v$LIBWEBSOCKETS_VERSION.tar.gz | tar xz
|
curl -sLo- https://github.com/warmcat/libwebsockets/archive/v$LIBWEBSOCKETS_VERSION.tar.gz | tar xz
|
||||||
cd libwebsockets-$LIBWEBSOCKETS_VERSION
|
cd libwebsockets-$LIBWEBSOCKETS_VERSION
|
||||||
cmake $CMAKE_OPTIONS .
|
cmake -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DCMAKE_BUILD_TYPE=RELEASE .
|
||||||
make && sudo make install
|
make && sudo make install
|
||||||
popd
|
popd
|
||||||
script: |
|
script: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake $CMAKE_OPTIONS ..
|
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
|
||||||
make && sudo make install
|
make && sudo make install
|
||||||
ttyd -v
|
ttyd -v
|
||||||
jobs:
|
jobs:
|
||||||
@@ -39,4 +39,4 @@ jobs:
|
|||||||
file: bin/*
|
file: bin/*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ build_libwebsockets() {
|
|||||||
-DLWS_STATIC_PIC=ON \
|
-DLWS_STATIC_PIC=ON \
|
||||||
-DLWS_WITH_SHARED=OFF \
|
-DLWS_WITH_SHARED=OFF \
|
||||||
-DLWS_UNIX_SOCK=ON \
|
-DLWS_UNIX_SOCK=ON \
|
||||||
|
-DLWS_IPV6=ON \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=../../cross-$TARGET.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=../../cross-$TARGET.cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=$STAGE_DIR \
|
-DCMAKE_INSTALL_PREFIX=$STAGE_DIR \
|
||||||
..
|
..
|
||||||
|
|||||||
Reference in New Issue
Block a user