cc_library(
    name = "freetype",
    srcs = [
        "autofit/autofit.c",
        "base/ftbase.c",
        "base/ftbbox.c",
        "base/ftbdf.c",
        "base/ftbitmap.c",
        "base/ftcid.c",
        "base/ftfntfmt.c",
        "base/ftfstype.c",
        "base/ftgasp.c",
        "base/ftglyph.c",
        "base/ftgxval.c",
        "base/ftinit.c",
        "base/ftlcdfil.c",
        "base/ftmm.c",
        "base/ftotval.c",
        "base/ftpatent.c",
        "base/ftpfr.c",
        "base/ftstroke.c",
        "base/ftsynth.c",
        "base/ftsystem.c",
        "base/fttype1.c",
        "base/ftwinfnt.c",
        "bdf/bdf.c",
        "bzip2/ftbzip2.c",
        "cache/ftcache.c",
        "cff/cff.c",
        "cid/type1cid.c",
        "gzip/ftgzip.c",
        "lzw/ftlzw.c",
        "pcf/pcf.c",
        "pfr/pfr.c",
        "psaux/psaux.c",
        "pshinter/pshinter.c",
        "psnames/psnames.c",
        "raster/raster.c",
        "sfnt/sfnt.c",
        "smooth/smooth.c",
        "truetype/truetype.c",
        "type1/type1.c",
        "type42/type42.c",
        "winfonts/winfnt.c"
    ],
    hdrs = glob([
        "**/*.h",
    ]),
    textual_hdrs = glob(["**/*.c"]),
    visibility = ["//visibility:public"],
    copts = [ 
        "-DFT2_BUILD_LIBRARY",
        "-Isrc/thirdparty/freetype/include",
        "-Isrc/thirdparty/freetype/include/freetype/internal",
        "-Isrc/thirdparty/freetype/include/freetype/internal/services",
        "-Isrc/thirdparty/freetype/include/freetype/config" 
    ]
)

