update code

This commit is contained in:
2025-08-15 15:56:40 +08:00
parent 4a426c207d
commit 8e0d68bc21
1957 changed files with 1013539 additions and 0 deletions

28
protobuf/gmock.BUILD Normal file
View File

@@ -0,0 +1,28 @@
cc_library(
name = "gtest",
srcs = [
"googletest/src/gtest-all.cc",
"googlemock/src/gmock-all.cc",
],
hdrs = glob([
"**/*.h",
"googletest/src/*.cc",
"googlemock/src/*.cc",
]),
includes = [
"googlemock",
"googletest",
"googletest/include",
"googlemock/include",
],
linkopts = ["-pthread"],
visibility = ["//visibility:public"],
)
cc_library(
name = "gtest_main",
srcs = ["googlemock/src/gmock_main.cc"],
linkopts = ["-pthread"],
visibility = ["//visibility:public"],
deps = [":gtest"],
)