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.

67 lines
1.8 KiB

  1. # WIP
  2. ## Dependencies
  3. ```
  4. sudo port install git
  5. sudo port install gmake
  6. sudo port install autoconf
  7. sudo port install libtool
  8. sudo port install automake
  9. ```
  10. ```
  11. mkdir src_pEpMime4macOS
  12. cd src_pEpMime4macOS
  13. mkdir -p local/include
  14. mkdir -p local/lib
  15. # Dont bother with crossbuild. We need the headers only.
  16. git clone -b boost-1.73.0 --recursive https://github.com/boostorg/boost.git
  17. pushd boost
  18. ./bootstrap.sh -mmacosx-version-min=10.10
  19. ./b2 -std=c++11 cxxflags=-mmacosx-version-min=10.10 --with-regex --with-filesystem --with-program_options --with-thread --with-system stage
  20. ./b2 install
  21. cp stage/lib/*.a "../local/lib"
  22. cp -r boost "../local/include"
  23. popd
  24. git clone -b "master" https://pep-security.lu/gitlab/misc/sqlite.git
  25. git clone -b "master" https://gitea.pep.foundation/pEp.foundation/libetpan.git
  26. git clone git://github.com/vlm/asn1c.git
  27. pushd asn1c
  28. git checkout tags/v0.9.28 -b pep-engine
  29. autoreconf -iv
  30. ./configure --prefix="../local"
  31. make install
  32. popd
  33. git clone -b v2.1.6 http://pep-security.lu/gitlab/macos/sequoia4macos.git
  34. pushd sequoia4macos
  35. sh build.sh
  36. popd
  37. https://gitea.pep.foundation/pEp.foundation/pEpEngine.git
  38. git clone -b "v1.16_without_lib_prefix_defines" https://gitea.pep.foundation/buff/libiconv.git
  39. git clone https://gitea.pep.foundation/pEp.foundation/pEpMIME.git
  40. git clone https://gitea.pep.foundation/pep.foundation/pEpObjCAdapter.git
  41. ```
  42. ## Build
  43. ### Using Xcode
  44. `open pEpMimeObjCAdapter/pEpMimeObjCAdapter.xcworkspace/`
  45. Build scheme "libpEpMimeObjCAdapter_macOS".
  46. ### Using terminal
  47. `xcodebuild -workspace "pEpMimeObjCAdapter.xcworkspace" -scheme "libpEpMimeObjCAdapter_macOS" -configuration RELEASE`
  48. (or DEBUG)
  49. ## Build Dir & Build Artefacts
  50. You can find the build artefacts in the `pEpMimeObjCAdapter/build` folder