From 2b220d0c86cc38d5d31ea74ffceccaa63b5780c0 Mon Sep 17 00:00:00 2001 From: Andreas Buff Date: Thu, 19 Aug 2021 10:46:51 +0200 Subject: [PATCH] IPS-2 adds readme for mac builds --- build-mac/README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 build-mac/README.md diff --git a/build-mac/README.md b/build-mac/README.md new file mode 100644 index 00000000..3729f0ba --- /dev/null +++ b/build-mac/README.md @@ -0,0 +1,70 @@ +# BUILD-MACOS + +Exists solely for sanity check. + +pEpCC must run on all OSs, thus Xcode build is not suitable. + +## Getting Dependencies + +Install this … + +``` +sudo port install git + +sudo port install gmake +sudo port install autoconf +sudo port install libtool +sudo port install automake +sudo port install asn1c +sudo port install wget +sudo port install gsed +pushd ~ +git clone https://gitea.pep.foundation/fdik/yml2 +popd +``` + +… and rust toolchain… + +``` +xcode-select --install +curl https://sh.rustup.rs -sSf | sh +``` +add this to ~/.profile (or ~/.zprofile, depending on the shell you are using): +``` +source $HOME/.cargo/env +export PATH="$HOME/.cargo/bin:$PATH" +``` +restart your console and run: +``` +sudo port install pkgconfig +rustup toolchain install nightly +rustup target add x86_64-apple-darwin +rustup target add aarch64-apple-darwin +rustup target add aarch64-apple-darwin --toolchain nightly +rustup update +``` + +… and etch this dependencies to be able to use build-mac + +``` +mkdir src_pEp4ipsec +cd src_pEp4ipsec + +git clone https://gitea.pep.foundation/buff/mac-os-build-scripts-common-dependencies.git +git clone https://gitea.pep.foundation/pep.foundation/pEpObjCAdapter.git + +http://pep-security.lu/gitlab/fdik/pEp-for-ipsec.git +``` +## Build + +### Using Xcode + +open pEp-for-ipsec/pEpCC/Xcode/pEpCC.xcodeproj + +Build scheme “pEpCC_macOS”. + +### Using terminal + +``` +xcodebuild -project "pEp-for-ipsec/pEpCC/Xcode/pEpCC.xcodeproj" -scheme "pEpCC_macOS" -configuration [RELEASE|DEBUG] +```