gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
429 stars 97 forks source link

Vendoring the include files #111

Closed agentabstract closed 1 month ago

agentabstract commented 3 months ago

I see there was a lot of people asking about vendoring of the include files. I was able to fix this in my abandoned fork by adding a go file to each included directory and sub directory.

// +build required

// Package dummy prevents go tooling from stripping the c dependencies.
package dummy

The package name is meaningless, you just need the build required part at the top, and a package name.

gen2brain commented 3 months ago

Thanks, I don't care about the vendor but if that can stop new related issues I am interested. PR is welcome, I don't have the time for that.

agentabstract commented 3 months ago

Heard. I'll do that when I get a moment myself.

gen2brain commented 1 month ago

Support for vendoring is added.