Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toupcam cameras: update SDK libs to version 20250209 #1296

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions build/unpack_toupcam_sdk.sh
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
set -ex

zip=$1
if [ ! -f "$zip" ]; then
if [[ ! -f $zip ]]; then
echo "usage: $0 toupcamsdk.zip" >&2
exit 1
fi
@@ -14,21 +14,23 @@ SRC=$(cd $(dirname "$0")/..; /bin/pwd)
TMP=/tmp/toupcamsdk.$$
trap "rm -rf $TMP" INT TERM QUIT EXIT

mkdir -p $TMP
cd $TMP
mkdir -p "$TMP"
cd "$TMP"
unzip "$zip"

DEST=$SRC/cameras/toupcam

# includes
cp ./inc/toupcam.h "$SRC"/cameras/
cp ./inc/toupcam.h "$DEST"/include/

# Windows libs
cp ./win/x86/toupcam.dll "$SRC"/WinLibs/
cp ./win/x86/toupcam.lib "$SRC"/cameras/
cp ./win/x86/toupcam.dll "$DEST"/win/x86/
cp ./win/x86/toupcam.lib "$DEST"/win/x86/

# Linux libs
for arch in x86 x64 armhf armel arm64; do
cp ./linux/$arch/libtoupcam.so "$SRC"/cameras/toupcam/linux/$arch/
cp ./linux/$arch/libtoupcam.so "$DEST"/linux/"$arch"/
done

# Mac
cp ./mac/libtoupcam.dylib "$SRC"/cameras/toupcam/mac/
cp ./mac/x64+arm64/libtoupcam.dylib "$DEST"/mac/
Loading