1// 2// Copyright (C) 2020 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_library { 21 name: "libcuttlefish_allocd_utils", 22 srcs: [ 23 "utils.cpp", 24 ], 25 shared_libs: [ 26 "libbase", 27 "libcuttlefish_fs", 28 "libcuttlefish_utils", 29 "libjsoncpp", 30 "liblog", 31 ], 32 defaults: ["cuttlefish_host"], 33 target: { 34 darwin: { 35 enabled: true, 36 }, 37 }, 38} 39 40cc_binary { 41 name: "allocd_client", 42 srcs: [ 43 "test/client.cpp", 44 ], 45 shared_libs: [ 46 "libbase", 47 "libcuttlefish_allocd_utils", 48 "libcuttlefish_fs", 49 "libcuttlefish_utils", 50 "libjsoncpp", 51 "liblog", 52 ], 53 static_libs: [ 54 "libcuttlefish_host_config", 55 "libgflags", 56 ], 57 defaults: ["cuttlefish_host"], 58} 59