p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. # BUILD-MACOS
  2. Exists solely for sanity check.
  3. pEpCC must run on all OSs, thus Xcode build is not suitable.
  4. ## Getting Dependencies
  5. Install this …
  6. ```
  7. sudo port install git
  8. sudo port install gmake
  9. sudo port install autoconf
  10. sudo port install libtool
  11. sudo port install automake
  12. sudo port install asn1c
  13. sudo port install wget
  14. sudo port install gsed
  15. pushd ~
  16. git clone https://gitea.pep.foundation/fdik/yml2
  17. popd
  18. ```
  19. … and rust toolchain…
  20. ```
  21. xcode-select --install
  22. curl https://sh.rustup.rs -sSf | sh
  23. source $HOME/.cargo/env
  24. ```
  25. restart your console and run:
  26. ```
  27. sudo port install pkgconfig
  28. rustup toolchain install nightly
  29. rustup target add x86_64-apple-darwin
  30. rustup target add aarch64-apple-darwin
  31. rustup target add aarch64-apple-darwin --toolchain nightly
  32. rustup update
  33. ```
  34. … and etch this dependencies to be able to use build-mac
  35. ```
  36. mkdir src_pEp4ipsec
  37. cd src_pEp4ipsec
  38. git clone https://gitea.pep.foundation/buff/mac-os-build-scripts-common-dependencies.git
  39. git clone https://gitea.pep.foundation/pep.foundation/pEpObjCAdapter.git
  40. http://pep-security.lu/gitlab/fdik/pEp-for-ipsec.git
  41. ```
  42. ## Build
  43. ### Using Xcode
  44. open pEp-for-ipsec/pEpCC/Xcode/pEpCC.xcodeproj
  45. Build scheme “pEpCC_macOS”.
  46. ### Using terminal
  47. ```
  48. xcodebuild -project "pEp-for-ipsec/pEpCC/Xcode/pEpCC.xcodeproj" -scheme "pEpCC_macOS" -configuration [RELEASE|DEBUG]
  49. ```