forked from pEp.foundation/pEpMIME
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# 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:
|
||
|
||
1. cd pEpEngine && make -C src install_headers
|
||
1. cd pEpMIME/src && make install
|
||
1. 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
|
||
|