[cairo] building a "tiny" libcairo for embedded system?

Behdad Esfahbod behdad at cs.toronto.edu
Fri Feb 10 15:47:40 PST 2006


On Fri, 10 Feb 2006, Leon Woestenberg wrote:

> In my current work, I stripped down Freetype, though this is targetted
> at a Pentium 4 platform.
>
> Here is a snippet of the build script for Freetype:

Note that FreeType changed build system recently such that you
don't have to remove stuff anymore.  A single config file is
enough.  Check out the FreeType list archives of past weeks for
the details.

behdad


> ----><----
> tar xjf freetype-2.1.10.tar.bz2
>
> ...
>
> # switch order of CFLAGS and INCLUDE_FLAGS, so that we can pass the
> 'custom' include
> # directory to override Freetype configuration
> sed -i -r 's at FT_CFLAGS.*=.*@FT_CFLAGS  = $\(CFLAGS\)
> $\(INCLUDE_FLAGS\)@g' builds/freetype.mk
>
> # Remove functionality from Freetype
> rm -rf
> src/{bdf,cache,cff,cid,gzip,lzw,otvalid,pcf,pfr,psaux,pshinter,psnames,raster,tools,type1,type42,winfonts}
>
> ./configure --host=${TARGET} --prefix=/usr CFLAGS="-march=pentium4\ -g"
> CPPFLAGS="-I../custom"
>
> make
> ----><----
>
> and ftmodule.h:
>
> ----><----
> FT_USE_MODULE(autofit_module_class)
> FT_USE_MODULE(tt_driver_class)
> #if 0
> FT_USE_MODULE(t1_driver_class)
> FT_USE_MODULE(cff_driver_class)
> FT_USE_MODULE(t1cid_driver_class)
> FT_USE_MODULE(pfr_driver_class)
> FT_USE_MODULE(t42_driver_class)
> FT_USE_MODULE(winfnt_driver_class)
> FT_USE_MODULE(pcf_driver_class)
> FT_USE_MODULE(psaux_module_class)
> FT_USE_MODULE(psnames_module_class)
> FT_USE_MODULE(pshinter_module_class)
> FT_USE_MODULE(ft_raster1_renderer_class)
> #endif
> FT_USE_MODULE(sfnt_module_class)
> FT_USE_MODULE(ft_smooth_renderer_class)
> #if 0
> FT_USE_MODULE(ft_smooth_lcd_renderer_class)
> FT_USE_MODULE(ft_smooth_lcdv_renderer_class)
> FT_USE_MODULE(otv_module_class)
> FT_USE_MODULE(bdf_driver_class)
> #endif
> ----><----
>
>
>
> Regards,
>
>
>
> Leon.
>
>
>

--behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"


More information about the cairo mailing list