# -*- python -*-

load(
    "@drake//tools/install:install.bzl",
    "install",
)

licenses(["notice"])  # Apache 2.0

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "uwebsockets",
    hdrs = glob(["src/*.h"]),
    includes = ["src"],
    deps = [
        "@usockets",
        "@zlib",
    ],
    linkopts = ["-pthread"],
    linkstatic = 1,
)

# Install the license file.
install(
    name = "install",
    docs = ["LICENSE"],
)
