1package { 2 default_applicable_licenses: ["frameworks_base_media_jni_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "frameworks_base_media_jni_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_library_shared { 19 name: "libmedia_jni", 20 21 defaults: ["libcodec2-internal-defaults"], 22 min_sdk_version: "", 23 24 srcs: [ 25 "android_media_ImageWriter.cpp", 26 "android_media_ImageReader.cpp", 27 "android_media_JetPlayer.cpp", 28 "android_media_MediaCrypto.cpp", 29 "android_media_MediaCodec.cpp", 30 "android_media_MediaCodecList.cpp", 31 "android_media_MediaDataSource.cpp", 32 "android_media_MediaDescrambler.cpp", 33 "android_media_MediaDrm.cpp", 34 "android_media_MediaExtractor.cpp", 35 "android_media_MediaHTTPConnection.cpp", 36 "android_media_MediaMetadataRetriever.cpp", 37 "android_media_MediaMuxer.cpp", 38 "android_media_MediaPlayer.cpp", 39 "android_media_MediaProfiles.cpp", 40 "android_media_MediaRecorder.cpp", 41 "android_media_MediaSync.cpp", 42 "android_media_ResampleInputStream.cpp", 43 "android_media_Streams.cpp", 44 "android_media_SyncParams.cpp", 45 "android_mtp_MtpDatabase.cpp", 46 "android_mtp_MtpDevice.cpp", 47 "android_mtp_MtpServer.cpp", 48 "JetPlayer.cpp", 49 ], 50 51 shared_libs: [ 52 "audioclient-types-aidl-cpp", 53 "av-types-aidl-cpp", 54 "framework-permission-aidl-cpp", 55 "libandroid_runtime", 56 "libaudioclient", 57 "libnativehelper", 58 "libnativewindow", 59 "libutils", 60 "libbinder", 61 "libmedia", 62 "libmedia_codeclist", 63 "libmedia_jni_utils", 64 "libmedia_omx", 65 "libmediametrics", 66 "libmediadrm", 67 "libmediadrmmetrics_consumer", 68 "libhwui", 69 "libui", 70 "liblog", 71 "libcutils", 72 "libgui", 73 "libstagefright", 74 "libstagefright_foundation", 75 "libcamera_client", 76 "libmtp", 77 "libpiex", 78 "libprocessgroup", 79 "libandroidfw", 80 "libhidlallocatorutils", 81 "libhidlbase", 82 "libsonivox", 83 "android.hardware.cas@1.0", 84 "android.hardware.cas.native@1.0", 85 "android.hardware.drm@1.3", 86 "android.hardware.drm@1.4", 87 "android.hidl.memory@1.0", 88 "android.hidl.token@1.0-utils", 89 ], 90 91 header_libs: [ 92 "libhardware_headers", 93 "libmediadrm_headers", 94 ], 95 96 static_libs: [ 97 "libgrallocusage", 98 "libmedia_midiiowrapper", 99 ], 100 101 include_dirs: [ 102 "frameworks/base/core/jni", 103 "frameworks/native/include/media/openmax", 104 "system/media/camera/include", 105 ], 106 107 export_include_dirs: ["."], 108 109 export_shared_lib_headers: [ 110 "libpiex", 111 ], 112 113 cflags: [ 114 "-Wall", 115 "-Werror", 116 "-Wno-error=deprecated-declarations", 117 "-Wunused", 118 "-Wunreachable-code", 119 ], 120 121 // Workaround Clang LTO crash. 122 lto: { 123 never: true, 124 }, 125} 126 127cc_library_shared { 128 name: "libmedia_jni_utils", 129 srcs: [ 130 "android_media_Utils.cpp", 131 ], 132 133 header_libs: [ 134 "libgui_headers", 135 ], 136 137 shared_libs: [ 138 "liblog", 139 "libui", 140 "libutils", 141 ], 142 143 include_dirs: [ 144 "system/media/camera/include", 145 ], 146 147 export_include_dirs: ["."], 148 149 cflags: [ 150 "-Wall", 151 "-Werror", 152 "-Wno-error=deprecated-declarations", 153 "-Wunused", 154 "-Wunreachable-code", 155 ], 156} 157 158cc_library_shared { 159 name: "libmedia_tv_tuner", 160 161 srcs: [ 162 "android_media_tv_Tuner.cpp", 163 "tuner/DemuxClient.cpp", 164 "tuner/DescramblerClient.cpp", 165 "tuner/DvrClient.cpp", 166 "tuner/FilterClient.cpp", 167 "tuner/FrontendClient.cpp", 168 "tuner/LnbClient.cpp", 169 "tuner/TimeFilterClient.cpp", 170 "tuner/TunerClient.cpp", 171 ], 172 173 shared_libs: [ 174 "android.hardware.graphics.bufferqueue@2.0", 175 "android.hardware.tv.tuner@1.0", 176 "android.hardware.tv.tuner@1.1", 177 "libbinder_ndk", 178 "libandroid_runtime", 179 "libcutils", 180 "libfmq", 181 "libhidlbase", 182 "liblog", 183 "libmedia", 184 "libnativehelper", 185 "libutils", 186 "tv_tuner_aidl_interface-ndk_platform", 187 "tv_tuner_resource_manager_aidl_interface-ndk_platform", 188 ], 189 190 static_libs: [ 191 "libaidlcommonsupport", 192 ], 193 194 defaults: [ 195 "libcodec2-impl-defaults", 196 ], 197 198 header_libs: [ 199 "libcodec2_internal", 200 "libstagefright_foundation_headers", 201 ], 202 203 // TunerService is a system service required for Tuner feature. 204 // TunerJNI is a client of TunerService so we build the dependency here. 205 required: ["mediatuner"], 206 207 export_include_dirs: ["."], 208 209 cflags: [ 210 "-Wall", 211 "-Werror", 212 "-Wno-error=deprecated-declarations", 213 "-Wunused", 214 "-Wunreachable-code", 215 ], 216} 217