| 1 |
load("@rules_go//go:def.bzl", "go_library", "go_test") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
go_library( |
| 10 |
name = "exporter", |
| 11 |
srcs = [ |
| 12 |
"bazel_query_command.go", |
| 13 |
"bazel_util.go", |
| 14 |
"cmake_exporter.go", |
| 15 |
"cmake_rule.go", |
| 16 |
"cmake_workspace.go", |
| 17 |
"gni_exporter.go", |
| 18 |
], |
| 19 |
importpath = "go.skia.org/skia/bazel/exporter", |
| 20 |
visibility = ["//visibility:public"], |
| 21 |
deps = [ |
| 22 |
"//bazel/exporter/build_proto/analysis_v2", |
| 23 |
"//bazel/exporter/build_proto/build", |
| 24 |
"//bazel/exporter/interfaces", |
| 25 |
"@org_golang_google_protobuf//proto", |
| 26 |
"@org_skia_go_infra//go/skerr", |
| 27 |
"@org_skia_go_infra//go/util", |
| 28 |
], |
| 29 |
) |
| 30 |
|
| 31 |
go_test( |
| 32 |
name = "exporter_test", |
| 33 |
srcs = [ |
| 34 |
"bazel_util_test.go", |
| 35 |
"cmake_exporter_test.go", |
| 36 |
"cmake_rule_test.go", |
| 37 |
"cmake_workspace_test.go", |
| 38 |
"gni_exporter_test.go", |
| 39 |
"util_test.go", |
| 40 |
], |
| 41 |
embed = [":exporter"], |
| 42 |
deps = [ |
| 43 |
"//bazel/exporter/build_proto/analysis_v2", |
| 44 |
"//bazel/exporter/build_proto/build", |
| 45 |
"//bazel/exporter/interfaces/mocks", |
| 46 |
"@com_github_stretchr_testify//assert", |
| 47 |
"@com_github_stretchr_testify//mock", |
| 48 |
"@com_github_stretchr_testify//require", |
| 49 |
"@org_golang_google_protobuf//encoding/prototext", |
| 50 |
"@org_golang_google_protobuf//proto", |
| 51 |
"@org_skia_go_infra//go/skerr", |
| 52 |
], |
| 53 |
) |