I am trying to create a build.zig and build.zig.zon for zstd. However, it seems like the zstd devs don't use a separate include/ directory and instead put the headers directly next to the .c source files in lib.
I tried the following but it ends up copying the entire lib directory and not the .h files - causing a Makefile and a BUCK build file to be copied along with the headers. For example, cmake allows you to specify a FILES_MATCHING *.h with the install function but zig does not seem to have this option.
lib.installHeadersDirectory(b.pathJoin(&.{ repo_path, "lib" }), "zstd");
Not sure what the best solution is here.