cu-zed 1.1.1

Copper source task for Stereolabs ZED stereo cameras.
default: check

_ffi-vendor-init:
	#!/usr/bin/env bash
	set -euo pipefail

	repo_root="$(cd "{{justfile_directory()}}/../../.." && pwd)"
	just --justfile "$repo_root/components/libs/zed_sdk_sys/justfile" _vendor-init

build: _ffi-vendor-init
	#!/usr/bin/env bash
	set -euo pipefail

	repo_root="$(cd "{{justfile_directory()}}/../../.." && pwd)"
	cd "$repo_root"
	cargo build -p cu-zed --example zed_rerun_demo --features zed-rerun-demo

check: _ffi-vendor-init
	#!/usr/bin/env bash
	set -euo pipefail

	repo_root="$(cd "{{justfile_directory()}}/../../.." && pwd)"
	cd "$repo_root"
	cargo check -p cu-zed --example zed_rerun_demo --features zed-rerun-demo

demo: _ffi-vendor-init
	#!/usr/bin/env bash
	set -euo pipefail

	repo_root="$(cd "{{justfile_directory()}}/../../.." && pwd)"
	cd "$repo_root"
	cargo run -r -p cu-zed --example zed_rerun_demo --features zed-rerun-demo

run: demo

build-demo: build

run-demo: demo