3b794a85a30771ef687bd34779e0cd3ac0983426
[platform/upstream/grpc.git] / third_party / upb / upb / bindings / lua / BUILD
1 load(
2     "//bazel:build_defs.bzl",
3     "UPB_DEFAULT_COPTS",
4     "UPB_DEFAULT_CPPOPTS",
5 )
6
7 licenses(["notice"])
8
9 cc_library(
10     name = "lupb",
11     srcs = [
12         "def.c",
13         "msg.c",
14         "upb.c",
15     ],
16     hdrs = [
17         "upb.h",
18     ],
19     copts = UPB_DEFAULT_COPTS,
20     visibility = ["//visibility:public"],
21     deps = [
22         "//:json",
23         "//:reflection",
24         "//:textformat",
25         "//:upb",
26         "@lua//:liblua",
27     ],
28 )
29
30 cc_binary(
31     name = "protoc-gen-lua",
32     srcs = ["upbc.cc"],
33     copts = UPB_DEFAULT_CPPOPTS,
34     visibility = ["//visibility:public"],
35     deps = [
36         "@com_google_absl//absl/strings",
37         "@com_google_protobuf//:protoc_lib",
38     ],
39 )
40
41 exports_files(["upb.lua"])