#!/usr/bin/make -f # Exclude binaries, benchmark and examples export DH_GOLANG_EXCLUDES := \ ^google.golang.org/grpc/admin/test \ ^google.golang.org/grpc/benchmark \ ^google.golang.org/grpc/credentials/alts \ ^google.golang.org/grpc/examples \ ^google.golang.org/grpc/gcp/observability \ ^google.golang.org/grpc/internal/testutils \ ^google.golang.org/grpc/interop \ ^google.golang.org/grpc/security/advancedtls/examples \ ^google.golang.org/grpc/stats/opentelemetry \ export DH_GOLANG_INSTALL_EXTRA := scripts/regenerate.sh debian/missing-sources export PATH := $(PATH):$(CURDIR)/_build/bin SRC_DIR := $(CURDIR)/_build/src/google.golang.org/grpc %: dh $@ --buildsystem=golang --builddirectory=_build execute_after_dh_auto_configure: dh_auto_configure -O--buildsystem=golang -O--builddirectory=_build DH_GOLANG_BUILDPKG=google.golang.org/grpc/cmd/protoc-gen-go-grpc dh_auto_build find $(SRC_DIR) -not -path '*/grpc_testing_not_regenerate/*' -type f -name '*.pb.go'\ -delete -printf 'removed %p\n' cd $(SRC_DIR) && ./scripts/regenerate.sh override_dh_auto_test: # admin/test and test fails to setup DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) admin test" \ dh_auto_test -O--buildsystem=golang -O--builddirectory=_build execute_after_dh_install: rm -rf $(CURDIR)/debian/tmp/usr/bin/cmd override_dh_auto_test: # Disable Test/EnterIdleDuringBalancerNewSubConn due to loops on i386. dh_auto_test -- -short -test.skip="\ TestRunSubTests|\ Test/EnterIdleDuringBalancerNewSubConn|\ "