readme improvements

This commit is contained in:
Stefan Bratanov 2022-11-24 12:32:03 +00:00
parent 679cdd20ce
commit a7557be070
4 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,2 @@
lib/
*.class *.class
*.o *.o
*.a

View File

@ -2,8 +2,8 @@
## Prerequisites ## Prerequisites
* Follow the instructions in the home README.md to create the libblst.a. * Follow the instructions in the [README.md](../../README.md) to install blst and C-KZG.
* JAVA_HOME environment variable is set to a jdk with an `include` folder containing jni.h file. * JAVA_HOME environment variable is set to a JDK with an `include` folder containing a jni.h file.
## Windows ## Windows
@ -14,7 +14,7 @@ TBC
## Linux ## Linux
```bash ```bash
clang -O -Wall -shared -fPIC -I../../blst/bindings -I../../src/ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -o lib/libckzg4844jni.so c_kzg_4844_jni.c ../../src/c_kzg_4844.c ../../blst/libblst.a clang -O -Wall -shared -fPIC -I../../blst/bindings -I../../src/ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -o lib/libckzg4844jni.so c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a
``` ```
## Mac-OS ## Mac-OS

3
bindings/java/lib/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.dll
*.so
*.dylib

View File

@ -15,6 +15,7 @@ blst:
cp libblst.a ../lib && \ cp libblst.a ../lib && \
cp bindings/*.h ../inc cp bindings/*.h ../inc
# Copy make sure c_kzg_4844.o is built and copy it for the NodeJS bindings # Make sure c_kzg_4844.o is built and copy it for the NodeJS and Java bindings
lib: c_kzg_4844.o Makefile lib: c_kzg_4844.o Makefile
cp *.o ../bindings/node.js cp *.o ../bindings/node.js
cp *.o ../bindings/java