From: Shuanglei Tao Date: Fri, 19 Jul 2019 15:00:18 +0000 (+0800) Subject: scripts: enable ipv6 support for lws X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=243a9b47faa08ab4967c3722a2765079079f8364;p=ttyd.git scripts: enable ipv6 support for lws --- diff --git a/.travis.yml b/.travis.yml index b8d334e..d690a79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,12 +18,12 @@ install: | pushd /tmp curl -sLo- https://github.com/warmcat/libwebsockets/archive/v$LIBWEBSOCKETS_VERSION.tar.gz | tar xz cd libwebsockets-$LIBWEBSOCKETS_VERSION - cmake $CMAKE_OPTIONS . + cmake -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DCMAKE_BUILD_TYPE=RELEASE . make && sudo make install popd script: | mkdir build && cd build - cmake $CMAKE_OPTIONS .. + cmake -DCMAKE_BUILD_TYPE=RELEASE .. make && sudo make install ttyd -v jobs: @@ -39,4 +39,4 @@ jobs: file: bin/* skip_cleanup: true on: - tags: true \ No newline at end of file + tags: true diff --git a/scripts/cross-build.sh b/scripts/cross-build.sh index 2e34529..a5c22db 100755 --- a/scripts/cross-build.sh +++ b/scripts/cross-build.sh @@ -72,6 +72,7 @@ build_libwebsockets() { -DLWS_STATIC_PIC=ON \ -DLWS_WITH_SHARED=OFF \ -DLWS_UNIX_SOCK=ON \ + -DLWS_IPV6=ON \ -DCMAKE_TOOLCHAIN_FILE=../../cross-$TARGET.cmake \ -DCMAKE_INSTALL_PREFIX=$STAGE_DIR \ ..