xref: /aosp_15_r20/external/bazelbuild-rules_android/src/tools/ak/res/BUILD (revision 9e965d6fece27a77de5377433c2f7e6999b8cc0b)
1load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
2load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
3
4# Description:
5#   Package for res module
6package(
7    default_applicable_licenses = ["//:license"],
8    default_visibility = ["//visibility:public"],
9)
10
11licenses(["notice"])
12
13go_library(
14    name = "res",
15    srcs = [
16        "naming.go",
17        "path.go",
18        "struct.go",
19        "xml.go",
20    ],
21    importpath = "src/tools/ak/res/res",
22    visibility = [
23        "//src/tools/ak:__subpackages__",
24        "//src/tools/resource_extractor:__subpackages__",
25        "//tools/android/incremental:__subpackages__",
26    ],
27    deps = [
28        "//src/tools/ak/res/proto:res_data_go_proto",
29        "//src/tools/ak/res/proto:res_meta_go_proto",
30        "@org_golang_google_protobuf//proto",
31    ],
32)
33
34go_test(
35    name = "res_test",
36    size = "small",
37    srcs = [
38        "naming_test.go",
39        "path_test.go",
40        "struct_test.go",
41    ],
42    embed = [":res"],
43)
44