#!/usr/bin/make -f

%:
	dh $@ --with libva

override_dh_auto_configure:
	dh_auto_configure -- -DINSTALL_DRIVER_SYSCONF=OFF \
		-DGEN8_Supported="no" \
		-DGEN8_BDW_Supported="no" \
		-DGEN9_Supported="no" \
		-DGEN9_BXT_Supported="no" \
		-DGEN9_SKL_Supported="no" \
		-DGEN9_CFL_Supported="no" \
		-DGEN9_GLK_Supported="no" \
		-DGEN9_KBL_Supported="no" \
		-DGEN10_Supported="no" \
		-DGEN10_CNL_Supported="no" \
		-DGEN11_Supported="no" \
		-DGEN11_ICLLP_Supported="no" \
		-DFull_Open_Source_Support="yes"

overrid_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	# Requires Broadwell or newer, so check for SSE 4.2 support at least.
	if grep -q sse4_2 /proc/cpuinfo; then dh_auto_test; fi
endif
