|heck c0e2a91578||7 months ago|
|android||8 months ago|
|androidTests||3 years ago|
|doc/doxygen||1 year ago|
|src||7 months ago|
|test||7 months ago|
|utils||7 months ago|
|.hgignore||8 months ago|
|LICENSE.txt||4 years ago|
|Makefile||9 months ago|
|Makefile.conf||7 months ago|
|README.md||1 year ago|
|local.conf.example||8 months ago|
More complete developer instructions can be found here: https://dev.pep.foundation/JNI%20Adapter/Tutorial.
To set up yml2 properly, consult the documentation of pEp Engine (linked below). yml2 is a build dependency of pEp Engine.
Any gcc or clang distribution offered by your OS is fine.
Instructions for obtaining the pEp Engine can be found on https://pep.foundation/dev/repos/pEpEngine/file/.
Instructions for obtaining libpEpAdapter can be found on https://pep.foundation/dev/repos/libpEpAdapter/file/.
Download Oracle Java from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
OpenJDK can be installed from macports on macOS with one of the following commands:
sudo port install openjdk8 sudo port install openjdk11
Build configuration will be the result of including these files in the following order:
local.conf- optional cfg (overwrites existing values)
src/local.conf- optional cfg for src dir (overwrites existing values)
local.conf looks like this:
JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk8/Contents/Home YML2_PATH=$(HOME)/code/yml2 ENGINE_INC_PATH=$(HOME)/code/engine/build/include ENGINE_LIB_PATH=$(HOME)/code/engine/build/lib AD_INC_PATH=$(HOME)/code/libad/build/include AD_LIB_PATH=$(HOME)/code/libad/build/lib
The the foo_PATH variables will be turned into compiler directives (-I / -L), which can be directly set by just omitting "_PATH" (e.g. ENGINE_INC). They will take priority.
Depending on what is already set in your environment, or can be found in your default include/library paths, setting any of these variables may be optional on your platform.
Now, build the Adapter with
(The GNU Make distributed with macOS might be too old, in this case install GNU Make "gmake" from macPorts).