1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 DEFINES['FT2_BUILD_LIBRARY'] = True
15 # We allow warnings for third-party code that can be updated from upstream.
16 AllowCompilerWarnings()
23 'src/base/ftsystem.c',
28 'src/bdf/bdf.c', # BDF font driver.
29 'src/cff/cff.c', # CFF/OpenType font driver.
30 'src/cid/type1cid.c', # Type 1 CID-keyed font driver.
31 'src/pcf/pcf.c', # PCF font driver.
32 'src/pfr/pfr.c', # PFR/TrueDoc font driver.
33 'src/sdf/sdf.c', # SDF font driver.
34 'src/sfnt/sfnt.c', # SFNT files support.
35 'src/truetype/truetype.c', # TrueType font driver.
36 'src/type1/type1.c', # PostScript Type 1 font driver.
37 'src/type42/type42.c', # PostScript Type 42 font driver.
38 'src/winfonts/winfnt.c', # Windows FONT/FNT font driver.
43 'src/autofit/autofit.c', # FreeType's auto hinter.
44 'src/pshinter/pshinter.c', # PostScript hinter.
49 'src/raster/raster.c', # Monochrome rasterizer.
50 'src/smooth/smooth.c', # Anti-aliasing rasterizer.
55 'src/bzip2/ftbzip2.c', # Support for streams compressed with bzip2 (files with suffix .bz2).
56 'src/cache/ftcache.c', # FreeType's cache sub-system.
57 'src/gzip/ftgzip.c', # Support for streams compressed with gzip (files with suffix .gz).
58 'src/lzw/ftlzw.c', # Support for streams compressed with LZW (files with suffix .Z).
59 'src/psaux/psaux.c', # Auxiliary PostScript driver component to share common code.
60 'src/psnames/psnames.c', # Support for PostScript glyph names.
63 # base module extensions
65 'src/base/ftbbox.c', # Exact bounding box calculation.
66 'src/base/ftbdf.c', # Access BDF-specific strings.
67 'src/base/ftbitmap.c', # Utility functions for converting 1bpp, 2bpp, 4bpp, and 8bpp bitmaps into 8bpp format, and for emboldening of bitmap glyphs.
68 'src/base/ftcid.c', # Access CID font information.
69 'src/base/ftfstype.c', # Access FSType information.
70 'src/base/ftgasp.c', # Support for GASP table queries.
71 'src/base/ftglyph.c', # Convenience functions to handle glyphs.
72 'src/base/ftgxval.c', # Interface for gxvalid module.
73 'src/base/ftmm.c', # Multiple Master font interface.
74 'src/base/ftotval.c', # Interface for otvalid module.
75 'src/base/ftpatent.c', # Support for FT_Face_CheckTrueTypePatents.
76 'src/base/ftpfr.c', # Interface for accessing PFR-specific data.
77 'src/base/ftstroke.c', # Path stroker.
78 'src/base/ftsynth.c', # Support for synthetic embolding and slanting of fonts.
79 'src/base/fttype1.c', # Interface to access data specific to PostScript Type 1 and Type 2 (CFF)
80 'src/base/ftwinfnt.c', # Interface for accessing data specific to Windows FNT files.
84 DEFINES['FT_CONFIG_OPTION_SYSTEM_ZLIB'] = True
85 CFLAGS += CONFIG['MOZ_ZLIB_CFLAGS']
89 DEFINES['FT_CONFIG_OPTION_USE_PNG'] = True
90 CFLAGS += CONFIG['MOZ_PNG_CFLAGS']
91 USE_LIBS += ['mozpng']
93 FINAL_LIBRARY = 'freetype'