forked from OpenVPN/openvpn3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend PolarSSL build scripts to Apple family.
- Loading branch information
1 parent
1a61341
commit 350558d
Showing
15 changed files
with
102 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# specify the cross compiler | ||
SET(CMAKE_C_COMPILER clang) | ||
SET(CMAKE_CXX_COMPILER clang++) | ||
SET(CMAKE_COMPILER_IS_GNUCC 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
export OPENSSL=openssl-1.0.1c | ||
export DIST=$(pwd)/openssl-$PLATFORM | ||
rm -rf $OPENSSL $DIST | ||
tar xfz ~/Downloads/$OPENSSL.tar.gz | ||
cd $OPENSSL | ||
NO_FLAGS="no-engine no-hw no-ssl2 no-ssl3 no-zlib no-rc2 no-idea no-des no-cast no-md2 no-mdc2 no-ripemd no-rc5 no-camellia no-seed no-krb5 no-socks no-ecdsa no-ec no-ecdh no-md2 no-md4 no-whirlpool no-dsa no-cms no-jpake no-gost" | ||
./Configure $OPENSSL_TARGET no-shared threads no-idea no-mdc2 no-rc5 $NO_FLAGS --prefix=$DIST | ||
sed -i "" -e "s|-O3|-O3 $PLATFORM_FLAGS|" Makefile | ||
make CC="clang" build_libs | ||
touch apps/openssl | ||
touch openssl.pc | ||
touch libcrypto.pc | ||
touch libssl.pc | ||
make install_sw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
export BOOST_DIR=$HOME/src/boost_1_49_0 | ||
export OVPN3_DIR=$HOME/src/ovpn3 | ||
export PLATFORM=ios | ||
export APPLE_FAMILY=1 | ||
export BOOST_STAGE=stage-$PLATFORM/lib | ||
export OPENSSL_DIR=$HOME/src/mac/openssl-$PLATFORM | ||
export IOS_SDK="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk" | ||
export PLATFORM_FLAGS="-arch armv7 -miphoneos-version-min=5.0 -isysroot $IOS_SDK" | ||
export LIB_OPT_LEVEL="-O3" | ||
export LIB_FPIC="" | ||
export PATH="$OVPN3_DIR/scripts:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export BOOST_DIR=$HOME/src/boost_1_49_0 | ||
export OVPN3_DIR=$HOME/src/ovpn3 | ||
export PLATFORM=iossim | ||
export APPLE_FAMILY=1 | ||
export BOOST_STAGE=stage-$PLATFORM/lib | ||
export OPENSSL_DIR=$HOME/src/mac/openssl-$PLATFORM | ||
export IOS_SDK="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk" | ||
export PLATFORM_FLAGS="-arch i386 -miphoneos-version-min=5.0 -isysroot $IOS_SDK" | ||
export LIB_OPT_LEVEL="-O3" | ||
export LIB_FPIC="" | ||
export PATH="$OVPN3_DIR/scripts:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
export BOOST_DIR=$HOME/boost_1_49_0 | ||
export SNAPPY_DIR=$HOME/snappy | ||
export LZ4_DIR=$HOME/lz4 | ||
export POLARSSL_DIR=$HOME/polarssl | ||
export POLARSSL_DIR=$HOME/polarssl-linux | ||
export JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64 | ||
export OVPN3_DIR=$HOME/ovpn3 | ||
export PLATFORM=linux | ||
export LIB_OPT_LEVEL="-O3" | ||
export LIB_FPIC="" | ||
export LD_LIBRARY_PATH="$BOOST_DIR/stage/lib:$SNAPPY_DIR/lib:$OVPN3_DIR/javacli" | ||
export PATH="$OVPN3_DIR/scripts:$JAVA_DIR/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters