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 "libext2_blkid", 45 "libbase", 46 "libcuttlefish_fs", 47 "libcuttlefish_utils", 48 "libcuttlefish_allocd_utils", 49 "libjsoncpp", 50 "liblog", 51 ], 52 static_libs: [ 53 "libgflags", 54 ], 55 defaults: ["cuttlefish_host"], 56} 57 58cc_binary { 59 name: "allocd_client", 60 srcs: [ 61 "test/client.cpp", 62 ], 63 shared_libs: [ 64 "libext2_blkid", 65 "libbase", 66 "libcuttlefish_allocd_utils", 67 "libcuttlefish_fs", 68 "libcuttlefish_utils", 69 "liblog", 70 "libjsoncpp", 71 ], 72 static_libs: [ 73 "libcuttlefish_host_config", 74 "libgflags", 75 ], 76 defaults: ["cuttlefish_host"], 77} 78