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 "libext2_blkid", 24 "libbase", 25 "libcuttlefish_fs", 26 "liblog", 27 "libicuuc", 28 "libprotobuf-cpp-full", 29 "libgrpc++_unsecure", 30 ], 31 defaults: ["cuttlefish_buildhost_only"], 32} 33 34cc_binary { 35 name: "cvd_import_locations", 36 shared_libs: [ 37 "libext2_blkid", 38 "libbase", 39 "libcuttlefish_fs", 40 "libcuttlefish_utils", 41 "libjsoncpp", 42 "libprotobuf-cpp-full", 43 "libgrpc++_unsecure", 44 "libxml2", 45 ], 46 static_libs: [ 47 "libcuttlefish_host_config", 48 "libgflags", 49 "libcvd_gnss_grpc_proxy", 50 "liblocation", 51 ], 52 srcs: [ 53 "main.cc", 54 ], 55 cflags: [ 56 "-Wno-unused-parameter", 57 "-D_XOPEN_SOURCE", 58 ], 59 defaults: ["cvd_import_locations_defaults"], 60} 61 62cc_test_host { 63 name: "cvd_import_locations_test", 64 shared_libs: [ 65 "libext2_blkid", 66 "libbase", 67 "libcuttlefish_fs", 68 "libcuttlefish_utils", 69 "libxml2", 70 ], 71 static_libs: [ 72 "liblocation", 73 "libgmock", 74 ], 75 srcs: [ 76 "unittest/main_test.cc", 77 "unittest/kml_parser_test.cc", 78 "unittest/gpx_parser_test.cc", 79 ], 80 cflags: [ 81 "-Wno-unused-parameter", 82 "-D_XOPEN_SOURCE", 83 ], 84 defaults: ["cvd_import_locations_defaults"], 85}