1cc_library_shared {
2    name: "libft2",
3
4    // compile in ARM mode, since the glyph loader/renderer is a hotspot
5    // when loading complex pages in the browser
6    //
7    arch: {
8        arm: {
9            instruction_set: "arm",
10        },
11    },
12
13    srcs: [
14        "src/base/ftbbox.c",
15        "src/base/ftbitmap.c",
16        "src/base/ftfntfmt.c",
17        "src/base/ftfstype.c",
18        "src/base/ftglyph.c",
19        "src/base/ftlcdfil.c",
20	"src/base/ftstroke.c",
21        "src/base/fttype1.c",
22        "src/base/ftbase.c",
23        "src/base/ftsystem.c",
24        "src/base/ftinit.c",
25        "src/base/ftgasp.c",
26        "src/base/ftmm.c",
27        "src/gzip/ftgzip.c",
28	"src/raster/raster.c",
29        "src/sfnt/sfnt.c",
30        "src/smooth/smooth.c",
31        "src/autofit/autofit.c",
32        "src/truetype/truetype.c",
33        "src/cff/cff.c",
34	"src/psnames/psnames.c",
35        "src/pshinter/pshinter.c",
36    ],
37
38    export_include_dirs: ["include"],
39
40    cflags: [
41        "-W",
42        "-Wall",
43
44        "-fPIC",
45        "-DPIC",
46
47        "-DDARWIN_NO_CARBON",
48        "-DFT2_BUILD_LIBRARY",
49
50        "-O2",
51
52        // the following is for testing only, and should not be used in final
53        // builds of the product
54        // "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER",
55    ],
56
57    shared_libs: [
58        "libpng",
59        "libz",
60    ],
61}
62