#!/usr/bin/make -f

# service/*.c 与 tests/testing.c 使用 setlocale(LC_ALL, "") 但未包含 <locale.h>，
# GCC 14 起隐式函数声明按错误处理导致编译失败；强制包含 locale.h 提供声明。
export CPPFLAGS := $(CPPFLAGS) -include locale.h

%:
	dh $@ --with gir

override_dh_auto_configure:
	dh_auto_configure -- -Ddocs=true -Dintrospection=true -Dvapi=true -Dtests=true

# See upstream bug https://github.com/yetist/lunar-date/issues/14
override_dh_auto_test:
	export LANGUAGE=zh_CN; dh_auto_test
