aboutsummaryrefslogtreecommitdiff
path: root/src/tools/ak/res/BUILD
blob: 6cdb6e5b2d88390e10c4ff0b75102e7675301ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")

# Description:
#   Package for res module
package(default_visibility = ["//visibility:public"])

licenses(["notice"])

go_library(
    name = "res",
    srcs = [
        "naming.go",
        "path.go",
        "struct.go",
        "xml.go",
    ],
    importpath = "src/tools/ak/res/res",
    visibility = [
        "//src/tools/ak:__subpackages__",
        "//src/tools/resource_extractor:__subpackages__",
        "//tools/android/incremental:__subpackages__",
    ],
    deps = [
        "//src/tools/ak/res/proto:res_data_go_proto",
        "//src/tools/ak/res/proto:res_meta_go_proto",
        "@org_golang_google_protobuf//proto",
    ],
)

go_test(
    name = "res_test",
    size = "small",
    srcs = [
        "naming_test.go",
        "path_test.go",
        "struct_test.go",
    ],
    embed = [":res"],
)