mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-06 09:40:41 +03:00
7f499d0e5f
* makefiles: add /usr/local/opt/openssl/include and /usr/local/opt/openssl/lib as include paths on MacOS * Travis CI: add MacOS target and create scripts files
18 lines
350 B
Bash
18 lines
350 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
|
export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"
|
|
export CFLAGS="-I${HOME}/opt/include"
|
|
export LDFLAGS="-L${HOME}/opt/lib"
|
|
./configure
|
|
make
|
|
ldd bin/vpnserver/vpnserver
|
|
dh build-arch
|
|
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
./configure
|
|
make
|
|
else
|
|
exit 1
|
|
fi
|