load("@rules_cc//cc:cc_library.bzl", "cc_library")

load("@//:build_variables.bzl", "COPTS")

package(
    default_visibility = [
        "@//:android_cuttlefish",
        "@wayland//:__subpackages__",
    ],
)

cc_library(
    name = "expat",
    srcs = [
        "expat/lib/xmlparse.c",
        "expat/lib/xmlrole.c",
        "expat/lib/xmltok.c",
    ],
    hdrs = [
        "expat/lib/ascii.h",
        "expat/lib/asciitab.h",
        "expat/lib/expat.h",
        "expat/lib/expat_external.h",
        "expat/lib/iasciitab.h",
        "expat/lib/internal.h",
        "expat/lib/latin1tab.h",
        "expat/lib/nametab.h",
        "expat/lib/siphash.h",
        "expat/lib/utf8tab.h",
        "expat/lib/winconfig.h",
        "expat/lib/xmlrole.h",
        "expat/lib/xmltok.h",
        "expat/lib/xmltok_impl.c",
        "expat/lib/xmltok_impl.h",
        "expat/lib/xmltok_ns.c",
    ],
    copts = [
        "-DXML_POOR_ENTROPY",
    ],
    deps = [
        "@//build_external/expat:expat_config",
    ],
    cxxopts = COPTS,
    includes = [
        "expat/lib",
    ],
)
