#!/usr/bin/make -f
#export DH_VERBOSE=1

# https://github.com/linuxdeepin/go-gir-generator/commit/911db08d2ed2817dff0692fdf80000ccc002c554
export GOCACHE := /tmp/gocache
export GOFLAGS := -trimpath

# make test 阶段 go build 生成的 gio-2.0 包时, 生成代码的 cgo 导出声明
# (extern void _GDesktopAppLaunchCallback_c_wrapper();) 与新工具链 cgo 原型的
# (void(void *, GoInt32, void *)) 类型冲突, 该检查非真实单元测试, 跳过
export DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nocheck

%:
	dh $@

override_dh_dwz:

execute_before_dh_auto_install:
	find . -name ".gitignore" | xargs rm -rf
