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                "libcrypto",
34                "libcurl",
35                "libcuttlefish_fs",
36                "libcuttlefish_utils",
37                "libjsoncpp",
38                "liblog",
39                "libssl",
40                "libz",
41            ],
42        },
43        android: {
44            shared_libs: [
45                "libbase",
46                "libcrypto",
47                "libcurl",
48                "libcuttlefish_fs",
49                "libcuttlefish_utils",
50                "libjsoncpp",
51                "liblog",
52                "libssl",
53                "libz",
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        "libcrypto",
69        "libcurl",
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