sblin created page: Android JNI
This commit is contained in:
parent
23ba5e9b96
commit
b683d2d5df
|
@ -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`
|
Loading…
Reference in New Issue