1cc_library_shared { 2 name: "libmedia_jni", 3 4 srcs: [ 5 "android_media_ImageWriter.cpp", 6 "android_media_ImageReader.cpp", 7 "android_media_MediaCrypto.cpp", 8 "android_media_MediaCodec.cpp", 9 "android_media_MediaCodecList.cpp", 10 "android_media_MediaDataSource.cpp", 11 "android_media_MediaDescrambler.cpp", 12 "android_media_MediaDrm.cpp", 13 "android_media_MediaExtractor.cpp", 14 "android_media_MediaHTTPConnection.cpp", 15 "android_media_MediaMetadataRetriever.cpp", 16 "android_media_MediaMuxer.cpp", 17 "android_media_MediaPlayer.cpp", 18 "android_media_MediaProfiles.cpp", 19 "android_media_MediaRecorder.cpp", 20 "android_media_MediaScanner.cpp", 21 "android_media_MediaSync.cpp", 22 "android_media_ResampleInputStream.cpp", 23 "android_media_Streams.cpp", 24 "android_media_SyncParams.cpp", 25 "android_mtp_MtpDatabase.cpp", 26 "android_mtp_MtpDevice.cpp", 27 "android_mtp_MtpServer.cpp", 28 ], 29 30 shared_libs: [ 31 "libandroid_runtime", 32 "libnativehelper", 33 "libnativewindow", 34 "libutils", 35 "libbinder", 36 "libmedia", 37 "libmedia_jni_utils", 38 "libmedia_omx", 39 "libmediametrics", 40 "libmediadrm", 41 "libhwui", 42 "libui", 43 "liblog", 44 "libcutils", 45 "libgui", 46 "libstagefright", 47 "libstagefright_foundation", 48 "libcamera_client", 49 "libmtp", 50 "libexif", 51 "libpiex", 52 "libprocessgroup", 53 "libandroidfw", 54 "libhidlallocatorutils", 55 "libhidlbase", 56 "libhidltransport", 57 "android.hardware.cas@1.0", 58 "android.hardware.cas.native@1.0", 59 "android.hidl.memory@1.0", 60 "android.hidl.token@1.0-utils", 61 ], 62 63 header_libs: ["libhardware_headers"], 64 65 static_libs: ["libgrallocusage"], 66 67 include_dirs: [ 68 "frameworks/base/core/jni", 69 "frameworks/native/include/media/openmax", 70 "system/media/camera/include", 71 ], 72 73 export_include_dirs: ["."], 74 75 export_shared_lib_headers: [ 76 "libpiex", 77 ], 78 79 cflags: [ 80 "-Wall", 81 "-Werror", 82 "-Wno-error=deprecated-declarations", 83 "-Wunused", 84 "-Wunreachable-code", 85 ], 86} 87 88cc_library_shared { 89 name: "libmedia_jni_utils", 90 srcs: [ 91 "android_media_Utils.cpp", 92 ], 93 94 shared_libs: [ 95 "liblog", 96 "libgui", 97 "libnativewindow", 98 "libui", 99 "libutils", 100 "android.hidl.token@1.0-utils", 101 ], 102 103 include_dirs: [ 104 "system/media/camera/include", 105 ], 106 107 export_include_dirs: ["."], 108 109 cflags: [ 110 "-Wall", 111 "-Werror", 112 "-Wno-error=deprecated-declarations", 113 "-Wunused", 114 "-Wunreachable-code", 115 ], 116} 117 118cc_library_shared { 119 name: "libmedia2_jni", 120 121 srcs: [ 122 "android_media_DataSourceCallback.cpp", 123 "android_media_MediaMetricsJNI.cpp", 124 "android_media_MediaPlayer2.cpp", 125 "android_media_SyncParams.cpp", 126 ], 127 128 shared_libs: [ 129 // NDK or LLNDK or NDK-compliant 130 "libandroid", 131 "libbinder_ndk", 132 "libcgrouprc", 133 "libmediandk", 134 "libmediametrics", 135 "libnativehelper_compat_libc++", 136 "liblog", 137 "libvndksupport", 138 ], 139 140 header_libs: [ 141 "libhardware_headers", 142 "libnativewindow_headers", 143 ], 144 145 static_libs: [ 146 // MediaCas 147 "android.hidl.allocator@1.0", 148 "android.hidl.memory@1.0", 149 "libhidlbase", 150 "libhidlmemory", 151 "libhidltransport", 152 "libbinderthreadstate", 153 154 // MediaPlayer2 implementation 155 "libbase", 156 "libcrypto", 157 "libcutils", 158 "libjsoncpp", 159 "libmedia_player2_util", 160 "libmediaplayer2", 161 "libmediaplayer2-protos", 162 "libmediandk_utils", 163 "libmediautils", 164 "libprocessgroup", 165 "libprotobuf-cpp-lite", 166 "libstagefright_esds", 167 "libstagefright_foundation_without_imemory", 168 "libstagefright_httplive", 169 "libstagefright_id3", 170 "libstagefright_mpeg2support", 171 "libstagefright_nuplayer2", 172 "libstagefright_player2", 173 "libstagefright_rtsp_player2", 174 "libstagefright_timedtext2", 175 "libutils", 176 "libmedia2_jni_core", 177 ], 178 179 group_static_libs: true, 180 181 include_dirs: [ 182 "frameworks/base/core/jni", 183 "frameworks/native/include/media/openmax", 184 "system/media/camera/include", 185 ], 186 187 export_include_dirs: ["."], 188 189 cflags: [ 190 "-Wall", 191 "-Werror", 192 "-Wno-error=deprecated-declarations", 193 "-Wunused", 194 "-Wunreachable-code", 195 "-fvisibility=hidden", 196 ], 197 198 ldflags: ["-Wl,--exclude-libs=ALL,-error-limit=0"], 199} 200 201subdirs = [ 202 "audioeffect", 203 "soundpool", 204] 205