1// 2// Copyright (C) 2019 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_binary { 21 name: "assemble_cvd", 22 srcs: [ 23 "alloc.cc", 24 "assemble_cvd.cc", 25 "boot_config.cc", 26 "boot_image_utils.cc", 27 "clean.cc", 28 "disk_builder.cpp", 29 "disk_flags.cc", 30 "flags.cc", 31 "flag_feature.cpp", 32 "misc_info.cc", 33 "super_image_mixer.cc", 34 "vendor_dlkm_utils.cc", 35 ], 36 header_libs: [ 37 "bootimg_headers", 38 ], 39 shared_libs: [ 40 "libext2_blkid", 41 "libcuttlefish_fs", 42 "libcuttlefish_utils", 43 "libbase", 44 "libfruit", 45 "libjsoncpp", 46 "libnl", 47 "libprotobuf-cpp-full", 48 "libziparchive", 49 "libz", 50 "libcuttlefish_allocd_utils", 51 ], 52 static_libs: [ 53 "libcdisk_spec", 54 "libext2_uuid", 55 "libimage_aggregator", 56 "libsparse", 57 "libcuttlefish_display_flags", 58 "libcuttlefish_graphics_configuration", 59 "libcuttlefish_graphics_detector", 60 "libcuttlefish_host_config", 61 "libcuttlefish_host_config_adb", 62 "libcuttlefish_host_config_fastboot", 63 "libcuttlefish_launch_cvd_proto", 64 "libcuttlefish_vm_manager", 65 "libgflags", 66 ], 67 required: [ 68 "mkenvimage_slim", 69 "lz4", 70 "avbtool", 71 "mkuserimg_mke2fs", 72 ], 73 defaults: ["cuttlefish_host", "cuttlefish_libicuuc"], 74} 75 76cc_library { 77 name: "libcuttlefish_display_flags", 78 srcs: [ 79 "display_flags.cpp", 80 ], 81 shared_libs: [ 82 "libbase", 83 "libjsoncpp", 84 ], 85 static_libs: [ 86 "libcuttlefish_host_config", 87 ], 88 defaults: ["cuttlefish_host"], 89} 90