#!/usr/bin/make -f
%:
	dh $@ --buildsystem=meson

# Use the system Lua from the declared Build-Depends (liblua5.4-dev) instead of
# the bundled lua subproject wrap, so the build works offline and exercises the
# declared dependency (including for cross-builds). freetype2 and pcre2 are also
# resolved from their -dev packages via pkg-config, so no wraps are fetched.
# Note: do NOT pass -Dwrap_mode here; some build drivers (e.g. pkh) already pass
# --wrap-mode on the meson command line, and Meson errors out if the same option
# is given in both forms.
override_dh_auto_configure:
	dh_auto_configure -- -Duse_system_lua=true
