load("//cuttlefish/bazel:rules.bzl", "cf_cc_library")

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

cf_cc_library(
    name = "cuttlefish_wayland_server",
    srcs = [
        "wayland_compositor.cpp",
        "wayland_dmabuf.cpp",
        "wayland_seat.cpp",
        "wayland_server.cpp",
        "wayland_shell.cpp",
        "wayland_subcompositor.cpp",
        "wayland_surface.cpp",
        "wayland_surfaces.cpp",
        "wayland_virtio_gpu_metadata.cpp",
    ],
    hdrs = [
        "wayland_compositor.h",
        "wayland_dmabuf.h",
        "wayland_seat.h",
        "wayland_server.h",
        "wayland_server_callbacks.h",
        "wayland_shell.h",
        "wayland_subcompositor.h",
        "wayland_surface.h",
        "wayland_surfaces.h",
        "wayland_utils.h",
        "wayland_virtio_gpu_metadata.h",
    ],
    clang_format_enabled = False,
    deps = [
        "//cuttlefish/common/libs/fs",
        "//libbase",
        "@abseil-cpp//absl/log",
        "@abseil-cpp//absl/log:check",
        "@crosvm//:crosvm_gpu_display_wayland_protocols",
        "@libdrm//:libdrm_fourcc",
        "@libffi",
        "@wayland//:wayland_server",
    ],
)
