-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·27 lines (22 loc) · 1.04 KB
/
build.sh
File metadata and controls
executable file
·27 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
VERSION="25.06.0" # Note: The version is updated automatically when ci/release/update-version.sh is invoked
GROUP_ID="com.nvidia.cuvs"
SO_FILE_PATH="./internal"
if [ -z "$CMAKE_PREFIX_PATH" ]; then
export CMAKE_PREFIX_PATH=`pwd`/../cpp/build
fi
cd internal && cmake . && cmake --build . \
&& cd ..
# Generate Panama FFM API bindings and update (if any of them changed)
/bin/bash panama-bindings/generate-bindings.sh
BINDINGS_GENERATION_RETURN_VALUE=$?
if [ $BINDINGS_GENERATION_RETURN_VALUE != 0 ]
then
echo "Bindings generation did not complete normally (returned value ${BINDINGS_GENERATION_RETURN_VALUE})"
echo "Forcing this build process to abort"
exit 1
fi
mvn install:install-file -DgroupId=$GROUP_ID -DartifactId=cuvs-java-internal -Dversion=$VERSION -Dpackaging=so -Dfile=$SO_FILE_PATH/libcuvs_java.so \
&& cd cuvs-java \
&& mvn verify \
&& mvn javadoc:javadoc \
&& mvn install:install-file -Dfile=./target/cuvs-java-$VERSION-jar-with-dependencies.jar -DgroupId=$GROUP_ID -DartifactId=cuvs-java -Dversion=$VERSION -Dpackaging=jar