gen2brain / go-fitz

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

Vendoring the include files #111

Open agentabstract opened 1 month ago

agentabstract commented 1 month 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 1 month 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 1 month ago

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