]> prime8.dev >> repos - ttyd.git/commitdiff
scripts: optimize libwebsockets build
authorShuanglei Tao <tsl0922@gmail.com>
Mon, 27 Jul 2020 14:58:54 +0000 (22:58 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Mon, 27 Jul 2020 15:12:31 +0000 (23:12 +0800)
scripts/cross-build.sh

index 904006ea22bfa2be44e59887386a1f088fa385ea..9d72a8c8e6f71209aacc6cfcd010ac8d5e31ab4e 100755 (executable)
@@ -104,6 +104,16 @@ build_libwebsockets() {
             -DLWS_WITH_SHARED=OFF \
             -DLWS_UNIX_SOCK=ON \
             -DLWS_IPV6=ON \
+            -DLWS_ROLE_RAW_FILE=OFF \
+            -DLWS_WITH_HTTP2=OFF \
+            -DLWS_WITH_HTTP_BASIC_AUTH=OFF \
+            -DLWS_WITH_UDP=OFF \
+            -DLWS_WITHOUT_CLIENT=ON \
+            -DLWS_WITH_LEJP=OFF \
+            -DLWS_WITH_LEJP_CONF=OFF \
+            -DLWS_WITH_LWSAC=OFF \
+            -DLWS_WITH_CUSTOM_HEADERS=OFF \
+            -DLWS_WITH_SEQUENCER=OFF \
             ..
         make -j"$(nproc)" install
     popd