Home | History | Annotate | Download | only in freetype
      1 cc_library_shared {
      2     name: "libft2",
      3     host_supported: true,
      4 
      5     // compile in ARM mode, since the glyph loader/renderer is a hotspot
      6     // when loading complex pages in the browser
      7     //
      8     arch: {
      9         arm: {
     10             instruction_set: "arm",
     11         },
     12     },
     13 
     14     srcs: [
     15         "src/autofit/autofit.c",
     16         "src/base/ftbase.c",
     17         "src/base/ftbbox.c",
     18         "src/base/ftbitmap.c",
     19         "src/base/ftdebug.c",
     20         "src/base/ftfstype.c",
     21         "src/base/ftgasp.c",
     22         "src/base/ftglyph.c",
     23         "src/base/ftinit.c",
     24         "src/base/ftmm.c",
     25         "src/base/ftstroke.c",
     26         "src/base/fttype1.c",
     27         "src/base/ftsystem.c",
     28         "src/cid/type1cid.c",
     29         "src/cff/cff.c",
     30         "src/gzip/ftgzip.c",
     31         "src/psaux/psaux.c",
     32         "src/pshinter/pshinter.c",
     33         "src/psnames/psnames.c",
     34         "src/raster/raster.c",
     35         "src/sfnt/sfnt.c",
     36         "src/smooth/smooth.c",
     37         "src/truetype/truetype.c",
     38         "src/type1/type1.c",
     39     ],
     40 
     41     export_include_dirs: ["include"],
     42 
     43     cflags: [
     44         "-W",
     45         "-Wall",
     46         "-Werror",
     47 
     48         "-DDARWIN_NO_CARBON",
     49         "-DFT2_BUILD_LIBRARY",
     50 
     51         "-O2",
     52 
     53         // Upstream ignores unused parameter warning
     54         "-Wno-unused-parameter",
     55         // Disabling some of modules results in warnings
     56         "-Wno-unused-variable",
     57         // the following is for testing only, and should not be used in final
     58         // builds of the product
     59         // "-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER",
     60     ],
     61 
     62     shared_libs: [
     63         "libpng",
     64         "libz",
     65     ],
     66 
     67     target: {
     68         android: {
     69             cflags: [
     70                 "-fPIC",
     71                 "-DPIC",
     72             ],
     73         },
     74         not_windows: {
     75             cflags: [
     76                 "-fPIC",
     77                 "-DPIC",
     78             ],
     79         },
     80         windows: {
     81             enabled: true,
     82         },
     83     },
     84 }
     85 
     86 llndk_library {
     87     name: "libft2",
     88     vendor_available: false,
     89     symbol_file: "libft2.map.txt",
     90     export_include_dirs: ["include"],
     91 }
     92