• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_binary {
21    name: "fetch_cvd",
22    srcs: [
23        "build_api.cc",
24        "credential_source.cc",
25        "curl_wrapper.cc",
26        "fetch_cvd.cc",
27        "install_zip.cc",
28    ],
29    static_libs: [
30        "libcuttlefish_host_config",
31        "libgflags",
32    ],
33    target: {
34        host: {
35            stl: "libc++_static",
36            static_libs: [
37                "libbase",
38                "libcuttlefish_fs",
39                "libcuttlefish_utils",
40                "libcurl",
41                "libcrypto",
42                "liblog",
43                "libssl",
44                "libz",
45                "libjsoncpp",
46            ],
47        },
48        android: {
49            shared_libs: [
50                "libbase",
51                "libcuttlefish_fs",
52                "libcuttlefish_utils",
53                "libcurl",
54                "libcrypto",
55                "liblog",
56                "libssl",
57                "libz",
58                "libjsoncpp",
59            ],
60        },
61    },
62    defaults: ["cuttlefish_host"],
63}
64