Build libcamera in temp directory

This commit is contained in:
Manuel Thalmann 2022-11-17 15:30:40 +01:00
parent 9cccfeacb5
commit 24d2a42ba2

View file

@ -1,3 +1,7 @@
workingDirectory="$(pwd)"
contextRoot="$(mktemp -d)"
cd "$contextRoot"
sudo apt install -y \
build-essential meson ninja-build pkg-config libgnutls28-dev openssl \
python3-pip python3-yaml python3-ply python3-jinja2 \
@ -9,3 +13,6 @@ cd libcamera
meson build -Dpipelines=uvcvideo,vimc,ipu3 -Dipas=vimc,ipu3 -Dprefix=/usr -Dgstreamer=enabled
ninja -C build
sudo ninja -C build install
cd "$workingDirectory"
rm -rf "$contextRoot"