• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 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_host {
21    name: "cvd",
22    symlinks: ["acloud"],
23    srcs: [
24        "acloud_command.cpp",
25        "command_sequence.cpp",
26        "epoll_loop.cpp",
27        "instance_lock.cpp",
28        "instance_manager.cpp",
29        "main.cc",
30        "scope_guard.cpp",
31        "server.cc",
32        "server_client.cpp",
33        "server_command.cpp",
34        "server_shutdown.cpp",
35        "server_version.cpp",
36    ],
37    target: {
38        host: {
39            stl: "libc++_static",
40            static_libs: [
41                "libbase",
42                "libcuttlefish_fs",
43                "libcuttlefish_utils",
44                "libext2_blkid",
45                "libfruit",
46                "libjsoncpp",
47                "liblog",
48                "libprotobuf-cpp-lite",
49                "libz",
50            ],
51        },
52        android: {
53            shared_libs: [
54                "libbase",
55                "libcuttlefish_fs",
56                "libcuttlefish_utils",
57                "libext2_blkid",
58                "libfruit",
59                "libjsoncpp",
60                "liblog",
61                "libprotobuf-cpp-lite",
62                "libz",
63            ],
64        },
65    },
66    static_libs: [
67        "libbuildversion",
68        "libcuttlefish_cvd_proto",
69        "libcuttlefish_host_config",
70    ],
71    required: [
72        "cvd_internal_host_bugreport",
73        "cvd_internal_start",
74        "cvd_internal_status",
75        "cvd_internal_stop",
76    ],
77    defaults: [
78        "cuttlefish_host",
79    ],
80    use_version_lib: true,
81}
82