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// 16 17cc_binary { 18 name: "gsi_tool", 19 shared_libs: [ 20 "gsi_aidl_interface-cpp", 21 "libbase", 22 "libbinder", 23 "libcutils", 24 "libgsi", 25 "liblog", 26 "libutils", 27 ], 28 static_libs: [ 29 "libgsid", 30 ], 31 srcs: [ 32 "gsi_tool.cpp", 33 ], 34} 35 36cc_library { 37 name: "libgsi", 38 recovery_available: true, 39 host_supported: true, 40 srcs: [ 41 "libgsi.cpp", 42 ], 43 shared_libs: [ 44 "libbase", 45 ], 46 export_include_dirs: ["include"], 47} 48 49cc_library_static { 50 name: "libgsid", 51 srcs: [ 52 "libgsid.cpp", 53 ], 54 shared_libs: [ 55 "gsi_aidl_interface-cpp", 56 "libbase", 57 "libbinder", 58 "libutils", 59 ], 60 export_include_dirs: ["include"], 61} 62 63cc_library_headers { 64 name: "libgsi_headers", 65 host_supported: true, 66 recovery_available: true, 67 vendor_available: true, 68 export_include_dirs: ["include"], 69} 70 71cc_binary { 72 name: "gsid", 73 srcs: [ 74 "daemon.cpp", 75 "gsi_service.cpp", 76 "partition_installer.cpp", 77 ], 78 required: [ 79 "mke2fs", 80 ], 81 init_rc: [ 82 "gsid.rc", 83 ], 84 shared_libs: [ 85 "libbase", 86 "libbinder", 87 "libcrypto", 88 "liblog", 89 ], 90 static_libs: [ 91 "gsi_aidl_interface-cpp", 92 "libavb", 93 "libcutils", 94 "libdm", 95 "libext4_utils", 96 "libfs_mgr", 97 "libgsi", 98 "libgsid", 99 "liblp", 100 "libutils", 101 "libc++fs", 102 ], 103 target: { 104 android: { 105 shared_libs: [ 106 "libprocessgroup", 107 "libvndksupport", 108 ], 109 }, 110 }, 111 local_include_dirs: ["include"], 112} 113 114aidl_interface { 115 name: "gsi_aidl_interface", 116 unstable: true, 117 srcs: [":gsiservice_aidl"], 118 local_include_dir: "aidl", 119 backend: { 120 ndk: { 121 enabled: false, 122 }, 123 }, 124} 125 126filegroup { 127 name: "gsiservice_aidl", 128 srcs: [ 129 "aidl/android/gsi/AvbPublicKey.aidl", 130 "aidl/android/gsi/GsiProgress.aidl", 131 "aidl/android/gsi/IGsiService.aidl", 132 "aidl/android/gsi/IGsiServiceCallback.aidl", 133 "aidl/android/gsi/IImageService.aidl", 134 "aidl/android/gsi/IProgressCallback.aidl", 135 "aidl/android/gsi/MappedImage.aidl", 136 ], 137 path: "aidl", 138} 139 140vts_config { 141 name: "VtsGsiBootTest", 142} 143