forked from bytedeco/javacpp-presets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcppbuild.sh
executable file
·30 lines (29 loc) · 875 Bytes
/
cppbuild.sh
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
28
29
30
#!/bin/bash
# This file is meant to be included by the parent cppbuild.sh script
if [[ -z "$PLATFORM" ]]; then
pushd ..
bash cppbuild.sh "$@" tritonserver
popd
exit
fi
case $PLATFORM in
linux-arm64)
if [[ ! -f "/opt/tritonserver/include/triton/core/tritonserver.h" ]] && [[ ! -d "/opt/tritonserver/lib/" ]]; then
echo "Please make sure library and include files exist"
exit 1
fi
;;
linux-x86_64)
if [[ ! -f "/opt/tritonserver/include/triton/core/tritonserver.h" ]] && [[ ! -d "/opt/tritonserver/lib/" ]]; then
echo "Please make sure library and include files exist"
exit 1
fi
;;
windows-x86_64)
echo "Windows is not supported yet"
exit 1
;;
*)
echo "Error: Platform \"$PLATFORM\" is not supported"
;;
esac