Adapter for libpepmime, offering ObjC API.
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.

71 lines
1.7 KiB

  1. # pEpMimeObjCAdapter
  2. Converts MIME (string or data) to and from PEPMessage.
  3. Note: You have to update all PEPIdentities (from, to, cc, ...) with available data (userID, isOwn, ...) in a PEPMessage created from MIME.
  4. ## Get & Install Dependencies
  5. ### Install Tools
  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. ### Install Rust Toolchain
  20. ```
  21. xcode-select --install
  22. curl https://sh.rustup.rs -sSf | sh
  23. ```
  24. add this to ~/.profile (or ~/.zprofile, depending on the shell you are using):
  25. ```
  26. source $HOME/.cargo/env
  27. export PATH="$HOME/.cargo/bin:$PATH"
  28. ```
  29. restart your console and run:
  30. ```
  31. sudo port install pkgconfig
  32. rustup toolchain install nightly
  33. rustup target add x86_64-apple-darwin
  34. rustup target add aarch64-apple-darwin
  35. ```
  36. ### Get pEp Code
  37. ```
  38. mkdir src_pEpMime4macOS
  39. cd src_pEpMime4macOS
  40. git clone https://gitea.pep.foundation/buff/mac-os-build-scripts-common-dependencies.git
  41. git clone https://gitea.pep.foundation/pep.foundation/pEpObjCAdapter.git
  42. git clone https://gitea.pep.foundation/pEp.foundation/pEpMIME.git
  43. git clone https://gitea.pep.foundation/buff/pEpMimeObjCAdapter.git
  44. ```
  45. ## Build
  46. ### Using Xcode
  47. open pEpMimeObjCAdapter/pEpMimeObjCAdapter.xcworkspace/
  48. Build scheme "pEpMimeObjCAdapter_macOS".
  49. ### Using terminal
  50. ```
  51. xcodebuild -workspace "pEpMimeObjCAdapter.xcworkspace" -scheme "pEpMimeObjCAdapter_macOS" -configuration [RELEASE|DEBUG]
  52. ```
  53. ## Build Dir & Build Artefacts
  54. You can find the build artefacts in the `pEpMimeObjCAdapter/build` folder