-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
package(default_visibility = ["//visibility:private"]) | ||
|
||
licenses(["notice"]) # Apache 2.0 | ||
|
||
proto_library( | ||
name = "storage_conformance_tests_proto", | ||
srcs = [ | ||
"conformance_tests.proto", | ||
], | ||
deps = ["@com_google_protobuf//:timestamp_proto"], | ||
) | ||
|
||
cc_proto_library( | ||
name = "storage_conformance_tests_cc_proto", | ||
visibility = [ | ||
"//google/cloud/storage/tests:__pkg__", | ||
], | ||
deps = [":storage_conformance_tests_proto"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
|
||
# Signed URL conformance tests are parsed using protos. In order to simplify the | ||
# build files, only build these conformance tests if gRPC in GCS is compiled. | ||
if ((NOT GOOGLE_CLOUD_CPP_STORAGE_ENABLE_GRPC) OR (NOT BUILD_TESTING)) | ||
return() | ||
endif () | ||
|
||
include(GoogleCloudCppCommon) | ||
find_package(Protobuf CONFIG QUIET) | ||
if (NOT Protobuf_FOUND) | ||
find_package(Protobuf REQUIRED) | ||
endif () | ||
|
||
# Generate protobuf code and library | ||
if (COMMAND protobuf_generate) | ||
set(protobuf_PROTOC_EXE ${Protobuf_PROTOC_EXECUTABLE}) | ||
add_library(google_cloud_cpp_storage_tests_conformance_protos) | ||
protobuf_generate( | ||
LANGUAGE cpp TARGET google_cloud_cpp_storage_tests_conformance_protos | ||
PROTOS conformance_tests.proto) | ||
elseif (COMMAND protobuf_generate_cpp) | ||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS conformance_tests.proto) | ||
add_library(google_cloud_cpp_storage_tests_conformance_protos ${PROTO_HDRS} | ||
${PROTO_SRCS}) | ||
else () | ||
message(FATAL_ERROR "Missing protobuf_generate_cpp and protobuf_generate") | ||
endif () | ||
|
||
target_link_libraries(google_cloud_cpp_storage_tests_conformance_protos | ||
PUBLIC protobuf::libprotobuf) | ||
target_include_directories(google_cloud_cpp_storage_tests_conformance_protos | ||
SYSTEM PUBLIC "${PROJECT_BINARY_DIR}/protos") | ||
google_cloud_cpp_add_common_options( | ||
google_cloud_cpp_storage_tests_conformance_protos NO_WARNINGS) | ||
set_target_properties(google_cloud_cpp_storage_tests_conformance_protos | ||
PROPERTIES CXX_CLANG_TIDY "") |
File renamed without changes.