1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10cc_library_headers { 11 name: "libcodec2_internal", 12 13 export_include_dirs: [ 14 "internal", 15 ], 16 17 // TODO: Remove this when this module is moved back to frameworks/av. 18 vendor_available: true, 19 20 min_sdk_version: "29", 21} 22 23// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!! 24// use libcodec2-impl-defaults instead 25cc_library { 26 name: "libcodec2_vndk", 27 vendor_available: true, 28 min_sdk_version: "29", 29 // TODO: b/147147883 30 double_loadable: true, 31 32 srcs: [ 33 "C2AllocatorBlob.cpp", 34 "C2AllocatorIon.cpp", 35 "C2AllocatorGralloc.cpp", 36 "C2Buffer.cpp", 37 "C2Config.cpp", 38 "C2DmaBufAllocator.cpp", 39 "C2Fence.cpp", 40 "C2PlatformStorePluginLoader.cpp", 41 "C2Store.cpp", 42 "platform/C2BqBuffer.cpp", 43 "platform/C2SurfaceSyncObj.cpp", 44 "types.cpp", 45 "util/C2Debug.cpp", 46 "util/C2InterfaceHelper.cpp", 47 "util/C2InterfaceUtils.cpp", 48 "util/C2ParamUtils.cpp", 49 ], 50 51 export_include_dirs: [ 52 "include", 53 ], 54 55 export_shared_lib_headers: [ 56 "libbase", 57 "android.hardware.media.bufferpool@2.0", 58 ], 59 60 local_include_dirs: [ 61 "internal", 62 ], 63 64 header_libs: [ 65 "media_plugin_headers", 66 "libcodec2_headers", 67 ], 68 69 shared_libs: [ 70 "android.hardware.graphics.bufferqueue@2.0", 71 "android.hardware.graphics.common@1.2", 72 "android.hardware.media.bufferpool@2.0", 73 "libbase", 74 "libcutils", 75 "libdl", 76 "libhardware", 77 "libhidlbase", 78 "libion", 79 "libdmabufheap", 80 "libfmq", 81 "liblog", 82 "libnativewindow", 83 "libstagefright_foundation", 84 "libstagefright_bufferpool@2.0.1", 85 "libui", 86 "libutils", 87 ], 88 89 cflags: [ 90 "-Werror", 91 "-Wall", 92 ], 93} 94 95// public dependency for implementing Codec 2 components 96cc_defaults { 97 name: "libcodec2-impl-defaults", 98 99 shared_libs: [ 100 "libbase", // for C2_LOG 101 "liblog", // for ALOG 102 "libcodec2", 103 "libcodec2_vndk", 104 "libutils", 105 ], 106 107 min_sdk_version: "29", 108} 109 110// public dependency for implementing Codec 2 framework utilities 111// THIS IS ONLY FOR FRAMEWORK USE ONLY 112cc_defaults { 113 name: "libcodec2-internal-defaults", 114 defaults: ["libcodec2-impl-defaults"], 115 116 header_libs: [ 117 "libcodec2_internal", 118 ], 119 120 shared_libs: [ 121 "libcutils", // for properties 122 ], 123 124 // TODO: separate internal headers so they can be exposed here 125} 126