Skip to content

Commit

Permalink
Fix the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ishan committed Nov 17, 2024
1 parent c8ce539 commit 33d2ee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions java/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Prerequisites
-------------

* JDK 24
* JDK 22
* Maven 3.9.6 or later

Please build libcuvs (`./build.sh libcuvs` from top level directory) before building the Java API.
Please build libcuvs (`./build.sh libcuvs` from top level directory) before building the Java API with `./build.sh` from this directory.

Building
--------

./build.sh will generate the libcuvs_java.so file in internal/ directory, and then build the final jar file for the cuVS Java API in cuvs-java/ directory.
`./build.sh` will generate the libcuvs_java.so file in internal/ directory, and then build the final jar file for the cuVS Java API in cuvs-java/ directory.
13 changes: 5 additions & 8 deletions java/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export CMAKE_PREFIX_PATH=`pwd`/../cpp/build
cd internal
cmake .
cmake --build .
cd ..
mvn install:install-file -DgroupId=com.nvidia.cuvs -DartifactId=cuvs-java-internal -Dversion=0.1 -Dpackaging=so -Dfile=./internal/libcuvs_java.so

cd cuvs-java
mvn package
cd internal && cmake . && cmake --build . \
&& cd .. \
&& mvn install:install-file -DgroupId=com.nvidia.cuvs -DartifactId=cuvs-java-internal -Dversion=0.1 -Dpackaging=so -Dfile=./internal/libcuvs_java.so \
&& cd cuvs-java \
&& mvn package

0 comments on commit 33d2ee5

Please sign in to comment.