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_import_locations_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_import_locations", 34 shared_libs: [ 35 "libbase", 36 "libcuttlefish_fs", 37 "libcuttlefish_utils", 38 "libjsoncpp", 39 "libprotobuf-cpp-full", 40 "libgrpc++_unsecure", 41 "libxml2", 42 ], 43 static_libs: [ 44 "libcuttlefish_host_config", 45 "libgflags", 46 "libcvd_gnss_grpc_proxy", 47 "liblocation", 48 ], 49 srcs: [ 50 "main.cc", 51 ], 52 cflags: [ 53 "-Wno-unused-parameter", 54 "-D_XOPEN_SOURCE", 55 ], 56 defaults: ["cvd_import_locations_defaults"], 57 target: { 58 darwin: { 59 enabled: true, 60 }, 61 }, 62} 63 64cc_test_host { 65 name: "cvd_import_locations_test", 66 shared_libs: [ 67 "libbase", 68 "libcuttlefish_fs", 69 "libcuttlefish_utils", 70 "libxml2", 71 ], 72 static_libs: [ 73 "liblocation", 74 "libgmock", 75 ], 76 srcs: [ 77 "unittest/main_test.cc", 78 "unittest/kml_parser_test.cc", 79 "unittest/gpx_parser_test.cc", 80 ], 81 cflags: [ 82 "-Wno-unused-parameter", 83 "-D_XOPEN_SOURCE", 84 ], 85 defaults: ["cvd_import_locations_defaults"], 86 target: { 87 darwin: { 88 enabled: true, 89 }, 90 }, 91} 92