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_utils", 28 "libcuttlefish_fs", 29 "libjsoncpp", 30 "liblog", 31 ], 32 defaults: ["cuttlefish_host"], 33} 34 35cc_binary { 36 name: "allocd", 37 srcs: [ 38 "allocd.cpp", 39 "alloc_utils.cpp", 40 "resource_manager.cpp", 41 "resource.cpp", 42 ], 43 shared_libs: [ 44 "libbase", 45 "libcuttlefish_fs", 46 "libcuttlefish_utils", 47 "libcuttlefish_allocd_utils", 48 "libjsoncpp", 49 "liblog", 50 ], 51 static_libs: [ 52 "libgflags", 53 ], 54 defaults: ["cuttlefish_host"], 55} 56 57cc_binary { 58 name: "allocd_client", 59 srcs: [ 60 "test/client.cpp", 61 ], 62 shared_libs: [ 63 "libbase", 64 "libcuttlefish_allocd_utils", 65 "libcuttlefish_fs", 66 "libcuttlefish_utils", 67 "liblog", 68 "libjsoncpp", 69 ], 70 static_libs: [ 71 "libcuttlefish_host_config", 72 "libgflags", 73 ], 74 defaults: ["cuttlefish_host"], 75} 76