[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Building freetype with emscripten for use in a browser?
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Building freetype with emscripten for use in a browser? |
Date: |
Fri, 26 Dec 2014 05:30:58 +0100 (CET) |
> I can build freetype pretty easily if I use cmake+make, but
> apparently building with cmake doesn't provide a freetype-config
> script, [...]
Since I don't use cmake, I can't help here. It shouldn't be too
difficult to extend `CMakeLists.txt' so that it produces a
`freetype-config' script and a `freetype2.pc' file for pkg-config from
the templates located in `builds/unix'. Patches are welcomed :-)
> The emscripten doc suggests using emconfigure ./configure to pass
> the relevant environment variables to configure to make a cross
> compile for javascript work.
For UNIX, FreeType's top-level configure script simply passes all
options to `builds/unix/configure'. I think cross-compiling should
work just fine, using the standard `configure' incantation.
> But freetype's doc seems to say you should not try to pass custom
> env vars to freetype's build system.
What exactly are you referring to?
Werner