load("//tools/lint:lint.bzl", "add_lint_tests")
load(
    "//tools/skylark:drake_cc.bzl",
    "drake_cc_googletest",
    "drake_cc_library",
    "drake_cc_package_library",
)

# Because there are no meaninfully distinct components in this package, the
# only public target we will offer is our drake_cc_package_library.
package(default_visibility = ["//visibility:private"])

drake_cc_package_library(
    name = "mass_damper_spring",
    visibility = ["//visibility:public"],
    deps = [
        ":mass_damper_spring_analytical_solution",
    ],
)

drake_cc_library(
    name = "mass_damper_spring_analytical_solution",
    srcs = [
        "mass_damper_spring_analytical_solution.cc",
    ],
    hdrs = [
        "mass_damper_spring_analytical_solution.h",
    ],
    deps = [
        "//common:default_scalars",
        "//common:essential",
        "//math:autodiff",
    ],
)

# === test/ ===

drake_cc_googletest(
    name = "mass_damper_spring_analytical_solution_test",
    deps = [
        ":mass_damper_spring_analytical_solution",
        "//math:autodiff",
    ],
)

add_lint_tests(enable_clang_format_lint = False)
