diff --git a/Package.swift b/Package.swift index cc3fa86..cea2461 100644 --- a/Package.swift +++ b/Package.swift @@ -1,5 +1,7 @@ import PackageDescription let package = Package( - name: "CFontConfig" -) \ No newline at end of file + name: "CFontConfig", + pkgConfig: "fontconfig", + providers: [.Brew("fontconfig"), .Apt("fontconfig")] +) diff --git a/module.modulemap b/module.modulemap index af91eec..a9d63d4 100644 --- a/module.modulemap +++ b/module.modulemap @@ -1,5 +1,5 @@ module CFontConfig [system] { - header "/usr/include/fontconfig/fontconfig.h" + header "shim.h" link "fontconfig" export * -} \ No newline at end of file +} diff --git a/shim.h b/shim.h new file mode 100644 index 0000000..b3c5772 --- /dev/null +++ b/shim.h @@ -0,0 +1,2 @@ +#include +#include