Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
54 lines
1.0 KiB
1 year ago
|
# Copyright (c) 2009-2021, Google LLC
|
||
|
# All rights reserved.
|
||
|
#
|
||
1 year ago
|
# 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
|
||
1 year ago
|
|
||
1 year ago
|
load("//bazel:build_defs.bzl", "UPB_DEFAULT_COPTS")
|
||
1 year ago
|
|
||
|
cc_library(
|
||
|
name = "lex",
|
||
|
srcs = [
|
||
|
"atoi.c",
|
||
|
"round_trip.c",
|
||
|
"strtod.c",
|
||
|
"unicode.c",
|
||
|
],
|
||
|
hdrs = [
|
||
|
"atoi.h",
|
||
|
"round_trip.h",
|
||
|
"strtod.h",
|
||
|
"unicode.h",
|
||
|
],
|
||
|
copts = UPB_DEFAULT_COPTS,
|
||
|
visibility = ["//visibility:public"],
|
||
1 year ago
|
deps = ["//upb:port"],
|
||
1 year ago
|
)
|
||
|
|
||
|
cc_test(
|
||
|
name = "atoi_test",
|
||
|
srcs = ["atoi_test.cc"],
|
||
|
deps = [
|
||
|
":lex",
|
||
|
"@com_google_googletest//:gtest_main",
|
||
1 year ago
|
"@com_google_absl//absl/strings",
|
||
1 year ago
|
],
|
||
|
)
|
||
|
|
||
|
# begin:github_only
|
||
|
filegroup(
|
||
|
name = "source_files",
|
||
|
srcs = glob(
|
||
|
[
|
||
|
"**/*.c",
|
||
|
"**/*.h",
|
||
|
],
|
||
|
),
|
||
|
visibility = [
|
||
1 year ago
|
"//upb/cmake:__pkg__",
|
||
1 year ago
|
"//python/dist:__pkg__",
|
||
1 year ago
|
]
|
||
|
)
|
||
|
# end:github_only
|