1# Copyright 2022 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("//fcp:config.bzl", "FCP_COPTS") 16 17package( 18 default_visibility = [ 19 "//fcp:internal", 20 ], 21 licenses = ["notice"], # Apache 2.0 22) 23 24cc_library( 25 name = "curl_http_client", 26 srcs = [ 27 "curl_api.cc", 28 "curl_header_parser.cc", 29 "curl_http_client.cc", 30 "curl_http_request_handle.cc", 31 "curl_http_response.cc", 32 ], 33 hdrs = [ 34 "curl_api.h", 35 "curl_header_parser.h", 36 "curl_http_client.h", 37 "curl_http_request_handle.h", 38 "curl_http_response.h", 39 ], 40 copts = FCP_COPTS, 41 visibility = ["//visibility:public"], 42 deps = [ 43 "//fcp/base", 44 "//fcp/client/http:http_client", 45 "//fcp/client/http:http_client_util", 46 "@com_google_absl//absl/strings", 47 "@com_google_absl//absl/synchronization", 48 "@libcurl//:curl", 49 ], 50) 51 52cc_test( 53 name = "curl_header_parser_test", 54 srcs = [ 55 "curl_header_parser_test.cc", 56 ], 57 deps = [ 58 ":curl_http_client", 59 "//fcp/client/http:http_client_util", 60 "//fcp/testing", 61 "@com_google_googletest//:gtest_main", 62 ], 63) 64 65# TODO(team) 66