#!/usr/bin/make -f

# Prevent host Linux compiler flags from entering Cortex-M3 builds.
export CFLAGS =
export CPPFLAGS =
export CXXFLAGS =
export LDFLAGS =

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure --buildsystem=meson -- \
		--buildtype=debug \
		--cross-file=$(CURDIR)/llvm.ini \
		-Dvideo-codecs=all_free \
		-Dfirmwaredir=firmware

execute_after_dh_fixperms:
	chmod 644 debian/firmware-apple-avd/usr/lib/firmware/apple/*.bin
