sblin created page: Android JNI

This commit is contained in:
Sébastien Blin 2018-05-16 17:48:47 -04:00
parent 23ba5e9b96
commit b683d2d5df
1 changed files with 28 additions and 0 deletions

28
Android-JNI.md Normal file
View File

@ -0,0 +1,28 @@
JNI generation process
----------------------
- `cd ring-project/`
- Check ./daemon/src/dring
- Create a new file .i in ./daemon/bin/jni/ from an existing file in
the same folder
- Update with your new interfaces from documentation
- Check that callback block is at the beginning AND at the end of file
- `cd daemon/bin/jni`
- Edit ./daemon/bin/jni/jni\_interface.i and add yours with the other
.i files that are in the same folder
- `export PACKAGEDIR=\*\*\*\*/ring-project/client-android/ring-android/libringclient/src/main/java/cx/ring/daemon.`
ie: `export
PACKAGEDIR=/home/pduchemin/Documents/ring-project/client-android/ring-android/libringclient/src/main/java/cx/ring/daemon`
- Run
- `./make-swig.sh`
- or, if you start from scratch
- `./make-ring.py --init --distribution=Android`
- `./make-ring.py --install --distribution=Android`