#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include /usr/share/dpkg/architecture.mk

# 上游单元测试在非 x86 架构上因浮点容差差异失败；amd64 构建与测试正常，
# 故仅在 arm64 上跳过测试（DEB_BUILD_OPTIONS=nocheck，dh_auto_test 会自动跳过），
# 其他架构的构建与测试行为保持不变。
ifeq ($(DEB_HOST_ARCH),arm64)
export DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nocheck
endif

%:
	dh $@  --buildsystem=cmake
