Reorganize project structure

This commit is contained in:
Sergey Abramchuk
2018-07-18 15:33:11 +03:00
parent 5440663b12
commit a1c153d2ed
1750 changed files with 96 additions and 923 deletions
@@ -0,0 +1,3 @@
cli
cli.dSYM
build.tmp
@@ -0,0 +1,24 @@
Build on Mac:
With MbedTLS:
GCC_EXTRA="-ferror-limit=4" STRIP=1 MTLS=1 SNAP=1 LZ4=1 build cli
With MbedTLS and Minicrypto:
GCC_EXTRA="-ferror-limit=4" STRIP=1 MTLS=1 MINI=1 SNAP=1 LZ4=1 build cli
With MbedTLS, Minicrypto, and C++11 for optimized move constructors:
GCC_EXTRA="-ferror-limit=4 -std=c++11" STRIP=1 MTLS=1 MINI=1 SNAP=1 LZ4=1 build cli
With OpenSSL:
GCC_EXTRA="-ferror-limit=4" STRIP=1 OSSL=1 OPENSSL_SYS=1 SNAP=1 LZ4=1 build cli
With MbedTLS/AppleCrypto hybrid:
GCC_EXTRA="-ferror-limit=4" STRIP=1 HYBRID=1 SNAP=1 LZ4=1 build cli
Build on Linux:
With MbedTLS:
STRIP=1 SNAP=1 LZ4=1 MTLS=1 NOSSL=1 build cli
With OpenSSL:
STRIP=1 SNAP=1 LZ4=1 build cli
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,35 @@
#!/bin/bash
GCC_EXTRA="$GCC_EXTRA -DOPENVPN_SHOW_SESSION_TOKEN"
[ "$EER" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DTEST_EER"
[ "$NULL" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_FORCE_TUN_NULL"
[ "$EXIT" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DTUN_NULL_EXIT"
[ "$GREMLIN" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_GREMLIN"
[ "$DEX" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_DISABLE_EXPLICIT_EXIT"
[ "$BS64" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_BS64_DATA_LIMIT=2500000"
[ "$ROVER" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_REMOTE_OVERRIDE"
[ "$TLS" = "1" ] && GCC_EXTRA="$GCC_EXTRA -DOPENVPN_TLS_LINK"
if [ "$AGENT" = "1" ]; then
GCC_EXTRA="$GCC_EXTRA -DOPENVPN_COMMAND_AGENT"
fi
export GCC_EXTRA
if [ "$(uname)" == "Darwin" ]; then
cd $O3/core
if [ "$DEBUG" = "3" ]; then
. vars/vars-osx64-dbg
else
. vars/vars-osx64
fi
. vars/setpath
cd test/ovpncli
ASIO=1 MTLS=1 LZ4=1 PTPROXY=1 build cli 2>&1
else
cd $O3/core
if [ "$DEBUG" = "3" ]; then
. vars/vars-linux-dbg
else
. vars/vars-linux
fi
. vars/setpath
cd test/ovpncli
ASIO=1 MTLS=1 LZ4=1 NOSSL=1 PTPROXY=1 build cli 2>&1
fi