1 cc_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 "src/psaux/psaux.c", 37 "src/type1/type1.c", 38 "src/cid/type1cid.c", 39 ], 40 41 export_include_dirs: ["include"], 42 43 cflags: [ 44 "-W", 45 "-Wall", 46 "-Werror", 47 48 "-fPIC", 49 "-DPIC", 50 51 "-DDARWIN_NO_CARBON", 52 "-DFT2_BUILD_LIBRARY", 53 54 "-O2", 55 56 // Upstream ignores unused parameter warning 57 "-Wno-unused-parameter", 58 // Disabling some of modules results in warnings 59 "-Wno-unused-variable", 60 // the following is for testing only, and should not be used in final 61 // builds of the product 62 // "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER", 63 ], 64 65 shared_libs: [ 66 "libpng", 67 "libz", 68 ], 69 } 70 71 llndk_library { 72 name: "libft2", 73 vendor_available: false, 74 symbol_file: "libft2.map.txt", 75 export_include_dirs: ["include"], 76 } 77