no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / modules / freetype2 / moz.build
blobdfa53dfd89c123b8f4f59bf12a4e210c1492edca
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
9 CFLAGS += ['-std=c99']
11 LOCAL_INCLUDES += [
12     'include',
15 # We allow warnings for third-party code that can be updated from upstream.
16 AllowCompilerWarnings()
18 # base components
19 SOURCES += [
20     'src/base/ftbase.c',
21     'src/base/ftdebug.c',
22     'src/base/ftinit.c',
23     'src/base/ftsystem.c',
26 # font modules
27 SOURCES += [
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/svg/svg.c',            # OT-SVG rendering support.
36     'src/truetype/truetype.c',  # TrueType font driver.
37     'src/type1/type1.c',        # PostScript Type 1 font driver.
38     'src/type42/type42.c',      # PostScript Type 42 font driver.
39     'src/winfonts/winfnt.c',    # Windows FONT/FNT font driver.
42 # hinting modules
43 SOURCES += [
44     'src/autofit/autofit.c',    # FreeType's auto hinter.
45     'src/pshinter/pshinter.c',  # PostScript hinter.
48 # raster modules
49 SOURCES += [
50     'src/raster/raster.c',      # Monochrome rasterizer.
51     'src/smooth/smooth.c',      # Anti-aliasing rasterizer.
54 # auxiliary modules
55 SOURCES += [
56     'src/bzip2/ftbzip2.c',      # Support for streams compressed with bzip2 (files with suffix .bz2).
57     'src/cache/ftcache.c',      # FreeType's cache sub-system.
58     'src/gzip/ftgzip.c',        # Support for streams compressed with gzip (files with suffix .gz).
59     'src/lzw/ftlzw.c',          # Support for streams compressed with LZW (files with suffix .Z).
60     'src/psaux/psaux.c',        # Auxiliary PostScript driver component to share common code.
61     'src/psnames/psnames.c',    # Support for PostScript glyph names.
64 # base module extensions
65 SOURCES += [
66     'src/base/ftbbox.c',        # Exact bounding box calculation.
67     'src/base/ftbdf.c',         # Access BDF-specific strings.
68     'src/base/ftbitmap.c',      # Utility functions for converting 1bpp, 2bpp, 4bpp, and 8bpp bitmaps into 8bpp format, and for emboldening of bitmap glyphs.
69     'src/base/ftcid.c',         # Access CID font information.
70     'src/base/ftfstype.c',      # Access FSType information.
71     'src/base/ftgasp.c',        # Support for GASP table queries.
72     'src/base/ftglyph.c',       # Convenience functions to handle glyphs.
73     'src/base/ftgxval.c',       # Interface for gxvalid module.
74     'src/base/ftmm.c',          # Multiple Master font interface.
75     'src/base/ftotval.c',       # Interface for otvalid module.
76     'src/base/ftpatent.c',      # Support for FT_Face_CheckTrueTypePatents.
77     'src/base/ftpfr.c',         # Interface for accessing PFR-specific data.
78     'src/base/ftstroke.c',      # Path stroker.
79     'src/base/ftsynth.c',       # Support for synthetic embolding and slanting of fonts.
80     'src/base/fttype1.c',       # Interface to access data specific to PostScript Type 1 and Type 2 (CFF)
81     'src/base/ftwinfnt.c',      # Interface for accessing data specific to Windows FNT files.
84 # zlib library
85 DEFINES['FT_CONFIG_OPTION_SYSTEM_ZLIB'] = True
86 CFLAGS += CONFIG['MOZ_ZLIB_CFLAGS']
87 USE_LIBS += ['zlib']
89 # png library
90 DEFINES['FT_CONFIG_OPTION_USE_PNG'] = True
91 CFLAGS += CONFIG['MOZ_PNG_CFLAGS']
92 USE_LIBS += ['mozpng']
94 FINAL_LIBRARY = 'freetype'