1cc_library_headers { 2 name: "libcodec2_internal", 3 4 export_include_dirs: [ 5 "internal", 6 ], 7 8 // TODO: Remove this when this module is moved back to frameworks/av. 9 vendor_available: true, 10} 11 12// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!! 13// use libcodec2-impl-defaults instead 14cc_library_shared { 15 name: "libcodec2_vndk", 16 vendor_available: true, 17 18 srcs: [ 19 "C2AllocatorIon.cpp", 20 "C2AllocatorGralloc.cpp", 21 "C2Buffer.cpp", 22 "C2Config.cpp", 23 "C2PlatformStorePluginLoader.cpp", 24 "C2Store.cpp", 25 "platform/C2BqBuffer.cpp", 26 "types.cpp", 27 "util/C2Debug.cpp", 28 "util/C2InterfaceHelper.cpp", 29 "util/C2InterfaceUtils.cpp", 30 "util/C2ParamUtils.cpp", 31 ], 32 33 export_include_dirs: [ 34 "include", 35 ], 36 37 export_shared_lib_headers: [ 38 "libbase", 39 "android.hardware.media.bufferpool@2.0", 40 ], 41 42 local_include_dirs: [ 43 "internal", 44 ], 45 46 header_libs: [ 47 "media_plugin_headers", 48 "libcodec2_headers", 49 ], 50 51 shared_libs: [ 52 "android.hardware.graphics.allocator@2.0", 53 "android.hardware.graphics.allocator@3.0", 54 "android.hardware.graphics.bufferqueue@2.0", 55 "android.hardware.graphics.mapper@2.0", 56 "android.hardware.graphics.mapper@3.0", 57 "android.hardware.media.bufferpool@2.0", 58 "libbase", 59 "libbinder", 60 "libcutils", 61 "libdl", 62 "libhardware", 63 "libhidlbase", 64 "libion", 65 "libfmq", 66 "liblog", 67 "libnativewindow", 68 "libstagefright_foundation", 69 "libstagefright_bufferpool@2.0", 70 "libui", 71 "libutils", 72 ], 73 74 cflags: [ 75 "-Werror", 76 "-Wall", 77 ], 78} 79 80// public dependency for implementing Codec 2 components 81cc_defaults { 82 name: "libcodec2-impl-defaults", 83 84 shared_libs: [ 85 "libbase", // for C2_LOG 86 "liblog", // for ALOG 87 "libcodec2", 88 "libcodec2_vndk", 89 "libutils", 90 ], 91} 92 93// public dependency for implementing Codec 2 framework utilities 94// THIS IS ONLY FOR FRAMEWORK USE ONLY 95cc_defaults { 96 name: "libcodec2-internal-defaults", 97 defaults: ["libcodec2-impl-defaults"], 98 99 shared_libs: [ 100 "libcutils", // for properties 101 ], 102 103 // TODO: separate internal headers so they can be exposed here 104} 105 106