blob: 8e66b289a4eac29ed69944e8b8dcff2e8424a98b [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "skottie_lib",
srcs = ["skottie.go"],
importpath = "go.skia.org/infra/skottie/go/skottie",
visibility = ["//visibility:private"],
deps = [
"//go/common",
"//go/config",
"//go/gcs",
"//go/gcs/gcsclient",
"//go/httputils",
"//go/skerr",
"//go/sklog",
"//go/util",
"//skottie/go/config",
"@com_github_go_chi_chi_v5//:chi",
"@com_google_cloud_go_storage//:storage",
"@org_golang_google_api//option",
"@org_golang_x_oauth2//google",
"@org_golang_x_sync//errgroup",
],
)
go_test(
name = "skottie_test",
srcs = ["skottie_test.go"],
data = glob(["testdata/**"]) + ["//skottie:configs"],
embed = [":skottie_lib"],
deps = [
"//go/config",
"//go/gcs",
"//go/gcs/mocks",
"//go/testutils",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
],
)
go_binary(
name = "skottie",
embed = [":skottie_lib"],
visibility = ["//visibility:public"],
)