Re: [ft-devel] using pkg-config
On 13-09-17 03:56 AM, John Tytgat wrote: > On 9/17/2013 8:50 AM, Miles Bader wrote: >> 2013/9/17 Behdad Esfahbod : It also used to the case that pkg-config didn't handle cross-compilation properly (I haven't checked this in a while), which seems like it would be an issue for freetype. >>> Works just fine for cross-compiling. I do that every day. >> It does? How does it work? > Define PKG_CONFIG_LIBDIR My favorite is in fact a wrapper. Eg. $ cat ~/.local/i686-w64-mingw32/bin/i686-w64-mingw32-pkg-config #!/bin/sh PKG_CONFIG_LIBDIR=$HOME/.local/i686-w64-mingw32/lib/pkgconfig export PKG_CONFIG_LIBDIR exec pkg-config "$@" >> At least with standard autoconf practices, pkg-config doesn't even >> seem to notice if you're cross-compiling, and just gives info for the >> cross-compilation host, which is usually incorrect... > True, that's the current situation but with PKG_CONFIG_LIBDIR defined you can > avoid this. > > There are plans for a --host option > (http://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/) > but I don't know what the current state is. > > John. -- behdad http://behdad.org/ ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] using pkg-config
On 13-09-17 07:14 AM, Khaled Hosny wrote: > On Tue, Sep 17, 2013 at 07:58:27AM +0200, Werner LEMBERG wrote: >> I will soon need the HarfBuzz library which doesn't provide a `harfbuzz-config' script. >>> >>> That would be for GSUB closure I assume? >> >> Yep. >> >>> This will be tricky since it will cause a circular dependency >>> between harfbuzz and freetype. Let me think about it a bit. >> >> Uh, oh. I currently see only two solutions: >> >> (1) split HarfBuzz into two libraries >> (2) copy the GSUB closure stuff into FreeType >> >> Solution (1) means a lot of work for you, making HarfBuzz probably >> more difficult to maintain, and (2) would be a nasty hack, with the >> additional complication that HarfBuzz is written in C++... > > I think harfbuzz-ft part can be split just like harfbuzz-icu, then > freetype would only depend on the plain harfbuzz, but its will have to > maintain its own harfbuzz font functions implementation (you probably do > not even need most of them). FreeType itself doesn't need harfbuzz-ft. I can split, but this time it has to be split into separate tarballs such that distros can build harfbuzz, then freetype, then harfbuzz-ft. But then hb-view and hb-shape depend on harfbuzz-ft currently... Let me think about it a bit. > Regards, > Khaled > -- behdad http://behdad.org/ ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] using pkg-config
On Tue, Sep 17, 2013 at 07:58:27AM +0200, Werner LEMBERG wrote: > > >> I will soon need the HarfBuzz library which doesn't provide a > >> `harfbuzz-config' script. > > > > That would be for GSUB closure I assume? > > Yep. > > > This will be tricky since it will cause a circular dependency > > between harfbuzz and freetype. Let me think about it a bit. > > Uh, oh. I currently see only two solutions: > > (1) split HarfBuzz into two libraries > (2) copy the GSUB closure stuff into FreeType > > Solution (1) means a lot of work for you, making HarfBuzz probably > more difficult to maintain, and (2) would be a nasty hack, with the > additional complication that HarfBuzz is written in C++... I think harfbuzz-ft part can be split just like harfbuzz-icu, then freetype would only depend on the plain harfbuzz, but its will have to maintain its own harfbuzz font functions implementation (you probably do not even need most of them). Regards, Khaled ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] using pkg-config
On 9/17/2013 8:50 AM, Miles Bader wrote: 2013/9/17 Behdad Esfahbod : It also used to the case that pkg-config didn't handle cross-compilation properly (I haven't checked this in a while), which seems like it would be an issue for freetype. Works just fine for cross-compiling. I do that every day. It does? How does it work? Define PKG_CONFIG_LIBDIR At least with standard autoconf practices, pkg-config doesn't even seem to notice if you're cross-compiling, and just gives info for the cross-compilation host, which is usually incorrect... True, that's the current situation but with PKG_CONFIG_LIBDIR defined you can avoid this. There are plans for a --host option (http://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/) but I don't know what the current state is. John. ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel