1// DO NOT DEPEND ON THIS DIRECTLY 2// use libcodec2-hidl-client-defaults instead 3package { 4 // See: http://go/android-license-faq 5 // A large-scale-change added 'default_applicable_licenses' to import 6 // all of the 'license_kinds' from "frameworks_av_license" 7 // to get the below license kinds: 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["frameworks_av_license"], 10} 11 12cc_library { 13 name: "libcodec2_hidl_client@1.1", 14 15 defaults: ["hidl_defaults"], 16 17 srcs: [ 18 "types.cpp", 19 ], 20 21 header_libs: [ 22 "libcodec2_internal", // private 23 ], 24 25 shared_libs: [ 26 "android.hardware.media.bufferpool@2.0", 27 "android.hardware.media.c2@1.0", 28 "android.hardware.media.c2@1.1", 29 "libbase", 30 "libcodec2", 31 "libcodec2_hidl_client@1.0", 32 "libcodec2_vndk", 33 "libcutils", 34 "libgui", 35 "libhidlbase", 36 "liblog", 37 "libstagefright_bufferpool@2.0.1", 38 "libui", 39 "libutils", 40 ], 41 42 export_include_dirs: [ 43 "include", 44 ], 45 46 export_shared_lib_headers: [ 47 "android.hardware.media.c2@1.0", 48 "android.hardware.media.c2@1.1", 49 "libcodec2", 50 "libcodec2_hidl_client@1.0", 51 "libgui", 52 "libstagefright_bufferpool@2.0.1", 53 "libui", 54 ], 55} 56 57// DO NOT DEPEND ON THIS DIRECTLY 58// use libcodec2-hidl-defaults instead 59cc_library { 60 name: "libcodec2_hidl@1.1", 61 vendor_available: true, 62 min_sdk_version: "29", 63 apex_available: [ 64 "//apex_available:platform", 65 "com.android.media.swcodec", 66 ], 67 68 defaults: ["hidl_defaults"], 69 70 srcs: [ 71 "Component.cpp", 72 "ComponentInterface.cpp", 73 "ComponentStore.cpp", 74 "Configurable.cpp", 75 "InputBufferManager.cpp", 76 "InputSurface.cpp", 77 "InputSurfaceConnection.cpp", 78 "types.cpp", 79 ], 80 81 header_libs: [ 82 "libbinder_headers", 83 "libsystem_headers", 84 "libcodec2_internal", // private 85 ], 86 87 shared_libs: [ 88 "android.hardware.graphics.bufferqueue@1.0", 89 "android.hardware.graphics.bufferqueue@2.0", 90 "android.hardware.graphics.common@1.0", 91 "android.hardware.media@1.0", 92 "android.hardware.media.bufferpool@2.0", 93 "android.hardware.media.c2@1.0", 94 "android.hardware.media.c2@1.1", 95 "android.hardware.media.omx@1.0", 96 "libbase", 97 "libcodec2", 98 "libcodec2_hal_common", 99 "libcodec2_hidl@1.0", 100 "libcodec2_hidl_plugin_stub", 101 "libcodec2_vndk", 102 "libcutils", 103 "libhidlbase", 104 "liblog", 105 "libstagefright_bufferpool@2.0.1", 106 "libstagefright_bufferqueue_helper_novndk", 107 "libui", 108 "libutils", 109 ], 110 111 target: { 112 vendor: { 113 exclude_shared_libs: [ 114 "libstagefright_bufferqueue_helper_novndk", 115 "libcodec2_hidl_plugin_stub", 116 ], 117 shared_libs: [ 118 "libstagefright_bufferqueue_helper", 119 "libcodec2_hidl_plugin", 120 ], 121 }, 122 apex: { 123 exclude_shared_libs: [ 124 "libcodec2_hidl_plugin_stub", 125 "libcodec2_hidl_plugin", 126 ], 127 }, 128 }, 129 130 export_include_dirs: [ 131 "include", 132 ], 133 134 export_shared_lib_headers: [ 135 "android.hardware.media.c2@1.0", 136 "android.hardware.media.c2@1.1", 137 "libcodec2", 138 "libcodec2_hidl@1.0", 139 "libcodec2_vndk", 140 "libhidlbase", 141 "libstagefright_bufferpool@2.0.1", 142 "libui", 143 ], 144} 145 146// public dependency for Codec 2.0 HAL service implementations 147cc_defaults { 148 name: "libcodec2-hidl-defaults@1.1", 149 defaults: ["libcodec2-impl-defaults"], 150 151 shared_libs: [ 152 "android.hardware.media.c2@1.0", 153 "android.hardware.media.c2@1.1", 154 "libcodec2_hidl@1.0", 155 "libcodec2_hidl@1.1", 156 "libcodec2_vndk", 157 "libhidlbase", 158 ], 159} 160 161// public dependency for Codec 2.0 HAL client 162cc_defaults { 163 name: "libcodec2-hidl-client-defaults@1.1", 164 defaults: ["libcodec2-impl-defaults"], 165 166 shared_libs: [ 167 "android.hardware.media.c2@1.0", 168 "android.hardware.media.c2@1.1", 169 "libcodec2_hidl_client@1.0", 170 "libcodec2_hidl_client@1.1", 171 "libcodec2_vndk", 172 "libhidlbase", 173 ], 174} 175