1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_library { 21 name: "libcuttlefish_web", 22 srcs: [ 23 "http_client/http_client.cc", 24 "http_client/http_client_util.cc", 25 ], 26 static_libs: [ 27 "libcuttlefish_host_config", 28 ], 29 target: { 30 host: { 31 static_libs: [ 32 "libbase", 33 "libcuttlefish_fs", 34 "libcuttlefish_utils", 35 "libcurl", 36 "libcrypto", 37 "liblog", 38 "libssl", 39 "libz", 40 "libjsoncpp", 41 ], 42 }, 43 android: { 44 shared_libs: [ 45 "libbase", 46 "libcuttlefish_fs", 47 "libcuttlefish_utils", 48 "libcurl", 49 "libcrypto", 50 "liblog", 51 "libssl", 52 "libz", 53 "libjsoncpp", 54 ], 55 }, 56 }, 57 defaults: ["cuttlefish_host"], 58} 59 60cc_test_host { 61 name: "libcuttlefish_web_test", 62 srcs: [ 63 "http_client/unittest/http_client_util_test.cc", 64 "http_client/unittest/main_test.cc", 65 ], 66 static_libs: [ 67 "libbase", 68 "libcurl", 69 "libcrypto", 70 "libcuttlefish_fs", 71 "libcuttlefish_utils", 72 "libcuttlefish_web", 73 "libgmock", 74 "libjsoncpp", 75 "liblog", 76 "libssl", 77 "libz", 78 ], 79 defaults: ["cuttlefish_host"], 80} 81