| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_INSTALL_EXTRA := test_data |
| 4 | export DH_GOLANG_EXCLUDES := gen libwebp_src/swig |
| 5 | |
| 6 | # Ubuntu mangles png files by default, which can break the testdata. |
| 7 | export NO_PNG_PKG_MANGLE := 1 |
| 8 | |
| 9 | %: |
| 10 | dh $@ --builddirectory=_build --buildsystem=golang |
| 11 | |
| 12 | execute_after_dh_auto_configure: |
| 13 | # Prevent "C source files not allowed when not using cgo or SWIG" error |
| 14 | rm -rfv _build/src/github.com/bep/gowebp/libwebp_src/swig/*.c |