forked from pEp.foundation/pEpMIME
used a perl script[0] to convert .hgignore to .gitignore. [0] https://github.com/devzendo/hgignore-to-gitignore |
||
---|---|---|
build-windows | ||
src | ||
.gitignore | ||
LICENSE.txt | ||
README.md |
README.md
Build Instructions
Requirements
- Boost (1.63 or newer)
- libiconv (for Windows: https://github.com/pffang/libiconv-for-Windows )
- pEpEngine – see next section
- GoogleTest (GTest) – not to use library, but to run the unittests. :-) (for Windows you might follow these instructions: https://docs.microsoft.com/en-us/visualstudio/test/how-to-use-google-test-for-cpp?view=vs-2019)
Solve the cyclic dependency to pEpEngine
To build p≡p MIME it's necessary that header files of p≡p engine are already installed. Because of the dependency loop of p≡p MIME needing these headers and p≡p engine depending on p≡p MIME you best do things in this sequence:
- cd pEpEngine && make -C src install_headers
- cd pEpMIME/src && make install
- cd pEpEngine && make install
The build of p≡p MIME can be customized. Makefile variable PREFIX is the install directory. The environment variables CXXFLAGS and LDFLAGS are being used. So a typical build on macOS i.e. looks like this:
CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make PREFIX=$HOME -j4 all install