mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

This builds on the new dbus role support to provide a minimal example proxy between ws and dbus. A client app is provided that asks the proxy to connect to libwebsockets.org and proxy the drawing data from the mirror example there back to the dbus client using dbus messages.
54 lines
1.7 KiB
Bash
Executable file
54 lines
1.7 KiB
Bash
Executable file
#/bin/bash
|
|
|
|
if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
if [ "$LWS_METHOD" != "mbedtls" ] ; then
|
|
mkdir build && cd build &&
|
|
cmake -DOPENSSL_ROOT_DIR="/usr/local/opt/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build .
|
|
fi
|
|
else
|
|
if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
mkdir build && cd build &&
|
|
if [ "$LWS_METHOD" = "lwsws" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../minimal-examples/selftests.sh &&
|
|
../scripts/test-dbus-proxy.sh &&
|
|
../scripts/h2spec.sh &&
|
|
../scripts/attack.sh &&
|
|
../scripts/h2load.sh &&
|
|
../scripts/autobahn-test-client.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "lwsws2" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../scripts/autobahn-test-server.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "smp" ] ; then
|
|
cmake -DLWS_OPENSSL_LIBRARIES="/usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so" \
|
|
-DLWS_OPENSSL_INCLUDE_DIRS="/usr/local/include/openssl" $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
../scripts/h2load-smp.sh
|
|
else
|
|
if [ "$LWS_METHOD" = "mbedtls" ] ; then
|
|
cmake $CMAKE_ARGS .. &&
|
|
cmake --build . &&
|
|
sudo make install &&
|
|
../minimal-examples/selftests.sh &&
|
|
../scripts/h2spec.sh &&
|
|
../scripts/h2load.sh &&
|
|
../scripts/attack.sh
|
|
else
|
|
cmake $CMAKE_ARGS .. &&
|
|
cmake --build .
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|