Hi Behdad, I wrote this hb.cc file. Drop it in the root of harfbuzz source tree to try it out. You will need to add both Freetype and 'hb-ucdn' to the include path though.
It will *not* compile; there are a bunch of symbol redefinition problems and other seemingly (?) trivial things to fix (82 issues to be exact). I did not apply any patches to harfbuzz source tree itself. Thought you might want to change those things yourself since they would take some renaming of enum variables and other stuff. Let me know if you want a patch for that as well, I believe I'm able to write it myself. Cheers, Daniel On Wed, Dec 30, 2015 at 2:21 PM, Behdad Esfahbod <behdad.esfah...@gmail.com> wrote: > Thanks Daniel. I'm not opposed to the idea if it doesn't introduce too > many > hacks. Might take a look at it myself even. > > On 15-12-28 11:00 PM, Daniel Ribeiro Maciel wrote: > > I can write a '.cc' file which includes all other '.cc' files and > defines a > > bunch of stuff if you guys are willing to add such file to your source > tree. > > > > On Tue, Dec 15, 2015 at 11:14 AM, Jonathan Blow <j...@number-none.com > > <mailto:j...@number-none.com>> wrote: > > > > Sure, it would be fine to add this; there is also a for-loop in one > spot > > that doesn't compile in Visual Studio because it declares an enum > inline, > > so one has to move the enum. > > > > But these things don't matter, they only take a minute to fix. It's > > trivial. Whereas getting the library to build and link for the first > time > > is measured in hours. > > > > It is a two-orders-of-magnitude difference, which is why I am saying > that > > if widespread use of the code is a goal, making it easier to build > should > > be the priority. > > > > On Tuesday, December 15, 2015, Behdad Esfahbod < > behdad.esfah...@gmail.com > > <mailto:behdad.esfah...@gmail.com>> wrote: > > > > On 15-12-13 09:33 PM, Jamie Dale wrote: > > > You'll need a define to stub out getenv for a PS4 build > > > > I'll take a patch to hb-private.hh to do that. > > > > > > _______________________________________________ > > HarfBuzz mailing list > > HarfBuzz@lists.freedesktop.org <mailto: > HarfBuzz@lists.freedesktop.org> > > http://lists.freedesktop.org/mailman/listinfo/harfbuzz > > > > >
#define HAVE_FREETYPE #define HAVE_OT #define HAVE_UCDN #define HAVE_INTEL_ATOMIC_PRIMITIVES #include "src/hb-blob.cc" #include "src/hb-buffer-serialize.cc" #include "src/hb-buffer.cc" #include "src/hb-common.cc" #include "src/hb-face.cc" #include "src/hb-font.cc" #include "src/hb-ot-tag.cc" #include "src/hb-set.cc" #include "src/hb-shape.cc" #include "src/hb-shape-plan.cc" #include "src/hb-shaper.cc" #include "src/hb-unicode.cc" #include "src/hb-warning.cc" // OT Sources #include "src/hb-ot-font.cc" #include "src/hb-ot-layout.cc" #include "src/hb-ot-map.cc" #include "src/hb-ot-shape.cc" #include "src/hb-ot-shape-complex-arabic.cc" #include "src/hb-ot-shape-complex-default.cc" #include "src/hb-ot-shape-complex-hangul.cc" #include "src/hb-ot-shape-complex-hebrew.cc" #include "src/hb-ot-shape-complex-indic.cc" #include "src/hb-ot-shape-complex-indic-table.cc" #include "src/hb-ot-shape-complex-myanmar.cc" #include "src/hb-ot-shape-complex-thai.cc" #include "src/hb-ot-shape-complex-tibetan.cc" #include "src/hb-ot-shape-complex-use.cc" #include "src/hb-ot-shape-complex-use-table.cc" #include "src/hb-ot-shape-normalize.cc" #include "src/hb-ot-shape-fallback.cc" // UCDN Sources #include "src/hb-ucdn.cc" #include "src/hb-ucdn/ucdn.c" // Freetype Sources #include "src/hb-ft.cc"
_______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz