1//
2// Copyright (C) 2022 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_defaults {
21    name: "cvd_update_location_defaults",
22    shared_libs: [
23        "libbase",
24        "libcuttlefish_fs",
25        "liblog",
26        "libprotobuf-cpp-full",
27        "libgrpc++_unsecure",
28    ],
29    defaults: ["cuttlefish_buildhost_only"],
30}
31
32cc_binary {
33    name: "cvd_update_location",
34    shared_libs: [
35        "libbase",
36        "libcuttlefish_fs",
37        "libcuttlefish_utils",
38        "libjsoncpp",
39        "libprotobuf-cpp-full",
40        "libgrpc++_unsecure",
41    ],
42    static_libs: [
43        "libcuttlefish_host_config",
44        "libgflags",
45        "libcvd_gnss_grpc_proxy",
46        "liblocation",
47    ],
48    srcs: [
49        "main.cc",
50    ],
51    cflags: [
52        "-Wno-unused-parameter",
53        "-D_XOPEN_SOURCE",
54    ],
55    defaults: ["cvd_update_location_defaults"],
56    target: {
57        darwin: {
58            enabled: true,
59        },
60    },
61}
62