|
|
|
# Copyright (c) 2009-2021, Google LLC
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
load("//upb/bazel:build_defs.bzl", "UPB_DEFAULT_COPTS")
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "text",
|
|
|
|
srcs = [
|
|
|
|
"encode.c",
|
|
|
|
],
|
|
|
|
hdrs = [
|
|
|
|
"encode.h",
|
|
|
|
],
|
|
|
|
copts = UPB_DEFAULT_COPTS,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//third_party/utf8_range",
|
|
|
|
"//upb:base",
|
|
|
|
"//upb:eps_copy_input_stream",
|
|
|
|
"//upb:message",
|
|
|
|
"//upb:port",
|
|
|
|
"//upb:reflection",
|
|
|
|
"//upb:wire_reader",
|
|
|
|
"//upb/lex",
|
|
|
|
"//upb/message:internal",
|
|
|
|
"//upb/message:types",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# begin:github_only
|
|
|
|
filegroup(
|
|
|
|
name = "source_files",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"**/*.c",
|
|
|
|
"**/*.h",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
visibility = [
|
|
|
|
"//python/dist:__pkg__",
|
|
|
|
"//upb/cmake:__pkg__",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
# end:github_only
|