README.MD
author Hern?ni Marques <hernani@pep-project.org>
Tue, 10 May 2016 13:13:53 +0200
changeset 156 5a002aed6346
parent 113 862c9a651345
child 157 f456729d707e
permissions -rw-r--r--
Add instructions for importing CAcert root certs; linkfix
dirk@59
     1
# How to build
dirk@59
     2
dirk@59
     3
## Prerequisites
dirk@59
     4
hernani@156
     5
### Install Revision Control Systems used
hernani@156
     6
dirk@83
     7
Choose homebrew or macports for installing.
dirk@83
     8
dirk@83
     9
* git
dirk@59
    10
* Mercurial
dirk@59
    11
hernani@156
    12
### Install CAcert root certificates
hernani@156
    13
hernani@156
    14
Import the root certificates of the community-driven CAcert project
hernani@156
    15
in order to deal with the Mercurial repositories via https; for MAC
hernani@156
    16
OS X follow the following (GUI or commandline) instructions:
hernani@156
    17
hernani@156
    18
http://wiki.cacert.org/FAQ/ImportRootCert#Mac_OS_X
hernani@156
    19
dirk@113
    20
## Build instructions
dirk@113
    21
dirk@59
    22
```
dirk@59
    23
mkdir ~/src
dirk@59
    24
cd ~/src
dirk@59
    25
dirk@59
    26
git clone https://github.com/fdik/libetpan
dirk@59
    27
dirk@62
    28
hg clone https://cacert.pep.foundation/dev/repos/pantomime-iOS/
dirk@59
    29
hg clone https://cacert.pep.foundation/dev/repos/netpgp-et
dirk@59
    30
hg clone https://cacert.pep.foundation/dev/repos/pEpEngine
dirk@59
    31
hg clone https://cacert.pep.foundation/dev/repos/pEpiOSAdapter
dirk@59
    32
dirk@62
    33
hg clone https://cacert.pep-security.ch/dev/repos/pEp_for_iOS/
dirk@63
    34
dirk@63
    35
# For testing server access, this is temporary:
dirk@63
    36
cp ./pEpForiOS/Sync/TestData.swift.sample ./pEpForiOS/Sync/TestData.swift
dirk@59
    37
```
dirk@83
    38
dirk@83
    39
Note that netpgp includes a static openssl, and pEpEngine a static libcurl. For
dirk@83
    40
rebuilding see the respective scripts. But you should not have to do that for iOS.
dirk@113
    41
dirk@113
    42
## Auto-generating model files
dirk@113
    43
dirk@113
    44
The core data model files are generated with mogenerator, using a modified template
dirk@113
    45
(for generating protocol definitions as well).
dirk@113
    46
dirk@113
    47
```
dirk@113
    48
cd ~/src # Use the same base path here as previously
dirk@113
    49
hernani@156
    50
git clone https://github.com/dirkz/mogenerator.git
dirk@113
    51
dirk@113
    52
cd pEp_for_iOS
dirk@113
    53
dirk@113
    54
mogenerator --model pEpForiOS/pEpForiOS.xcdatamodeld/pEpForiOS.xcdatamodel --machine-dir pEpForiOS/Models/machine/ --human-dir pEpForiOS/Models/ --swift --base-class BaseManagedObject --template-path ../mogenerator/templates/
dirk@113
    55
```