Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 7 | license { |
| 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 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 18 | cc_library_shared { |
| 19 | name: "libmedia_jni", |
| 20 | |
Ted Bauer | e7b0c75 | 2024-04-24 16:51:20 +0000 | [diff] [blame^] | 21 | defaults: [ |
| 22 | "aconfig_lib_cc_static_link.defaults", |
| 23 | "libcodec2-internal-defaults", |
| 24 | ], |
Jiyong Park | 147c20f | 2021-03-16 22:29:45 +0900 | [diff] [blame] | 25 | min_sdk_version: "", |
Wonsik Kim | ccb7ac6 | 2019-12-27 17:12:40 -0800 | [diff] [blame] | 26 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 27 | srcs: [ |
| 28 | "android_media_ImageWriter.cpp", |
| 29 | "android_media_ImageReader.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 30 | "android_media_JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 31 | "android_media_MediaCrypto.cpp", |
| 32 | "android_media_MediaCodec.cpp", |
| 33 | "android_media_MediaCodecList.cpp", |
| 34 | "android_media_MediaDataSource.cpp", |
| 35 | "android_media_MediaDescrambler.cpp", |
| 36 | "android_media_MediaDrm.cpp", |
| 37 | "android_media_MediaExtractor.cpp", |
| 38 | "android_media_MediaHTTPConnection.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 39 | "android_media_MediaMetadataRetriever.cpp", |
| 40 | "android_media_MediaMuxer.cpp", |
| 41 | "android_media_MediaPlayer.cpp", |
| 42 | "android_media_MediaProfiles.cpp", |
| 43 | "android_media_MediaRecorder.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 44 | "android_media_MediaSync.cpp", |
Sally Qi | aba398d | 2021-12-06 16:37:50 -0800 | [diff] [blame] | 45 | "android_media_PublicFormatUtils.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 46 | "android_media_ResampleInputStream.cpp", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 47 | "android_media_Streams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 48 | "android_media_SyncParams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 49 | "android_mtp_MtpDatabase.cpp", |
| 50 | "android_mtp_MtpDevice.cpp", |
| 51 | "android_mtp_MtpServer.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 52 | "JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 53 | ], |
| 54 | |
| 55 | shared_libs: [ |
Jeongik Cha | 969b921 | 2021-01-28 00:49:47 +0900 | [diff] [blame] | 56 | "audioclient-types-aidl-cpp", |
| 57 | "av-types-aidl-cpp", |
Svet Ganov | b033da4 | 2021-05-20 15:09:08 +0000 | [diff] [blame] | 58 | "framework-permission-aidl-cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 59 | "libandroid_runtime", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 60 | "libaudioclient", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 61 | "libnativehelper", |
Mathias Agopian | 3e88ed8 | 2018-02-20 18:32:22 -0800 | [diff] [blame] | 62 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 63 | "libutils", |
| 64 | "libbinder", |
| 65 | "libmedia", |
Dongwon Kang | cc73dda | 2019-09-23 17:42:00 -0700 | [diff] [blame] | 66 | "libmedia_codeclist", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 67 | "libmedia_jni_utils", |
Jae Shin | a0f51ba | 2017-10-30 14:50:52 +0900 | [diff] [blame] | 68 | "libmedia_omx", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 69 | "libmediametrics", |
| 70 | "libmediadrm", |
Robert Shih | ba6777e | 2019-11-12 13:04:59 -0800 | [diff] [blame] | 71 | "libmediadrmmetrics_consumer", |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 72 | "libhwui", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 73 | "libui", |
| 74 | "liblog", |
| 75 | "libcutils", |
| 76 | "libgui", |
| 77 | "libstagefright", |
| 78 | "libstagefright_foundation", |
| 79 | "libcamera_client", |
| 80 | "libmtp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 81 | "libpiex", |
Suren Baghdasaryan | 3fc4af6 | 2018-12-14 10:32:22 -0800 | [diff] [blame] | 82 | "libprocessgroup", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 83 | "libandroidfw", |
Chong Zhang | f98fc1c | 2018-02-13 17:55:34 -0800 | [diff] [blame] | 84 | "libhidlallocatorutils", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 85 | "libhidlbase", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 86 | "libsonivox", |
Venkatarama Avadhani | c35577e | 2023-09-11 08:47:33 +0530 | [diff] [blame] | 87 | "server_configurable_flags", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 88 | "android.hardware.cas@1.0", |
| 89 | "android.hardware.cas.native@1.0", |
Robert Shih | d2e8b43 | 2019-11-21 20:27:56 -0800 | [diff] [blame] | 90 | "android.hardware.drm@1.3", |
Robert Shih | 696989f | 2021-02-12 23:25:16 -0800 | [diff] [blame] | 91 | "android.hardware.drm@1.4", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 92 | "android.hidl.memory@1.0", |
| 93 | "android.hidl.token@1.0-utils", |
Kyle Zhang | 160a04c | 2022-01-27 00:54:09 +0000 | [diff] [blame] | 94 | "android.hardware.drm-V1-ndk", |
Dean Wheatley | c7762b4 | 2022-12-20 09:33:23 +1100 | [diff] [blame] | 95 | "android.hardware.tv.tuner-V2-ndk", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 96 | ], |
| 97 | |
Marco Nelissen | a2eedd5d | 2019-09-27 11:19:36 -0700 | [diff] [blame] | 98 | header_libs: [ |
| 99 | "libhardware_headers", |
| 100 | "libmediadrm_headers", |
| 101 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 102 | |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 103 | static_libs: [ |
| 104 | "libgrallocusage", |
| 105 | "libmedia_midiiowrapper", |
Venkatarama Avadhani | c35577e | 2023-09-11 08:47:33 +0530 | [diff] [blame] | 106 | "android.media.playback.flags-aconfig-cc", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 107 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 108 | |
| 109 | include_dirs: [ |
| 110 | "frameworks/base/core/jni", |
| 111 | "frameworks/native/include/media/openmax", |
| 112 | "system/media/camera/include", |
| 113 | ], |
| 114 | |
| 115 | export_include_dirs: ["."], |
| 116 | |
| 117 | export_shared_lib_headers: [ |
| 118 | "libpiex", |
| 119 | ], |
| 120 | |
| 121 | cflags: [ |
| 122 | "-Wall", |
| 123 | "-Werror", |
| 124 | "-Wno-error=deprecated-declarations", |
| 125 | "-Wunused", |
| 126 | "-Wunreachable-code", |
| 127 | ], |
| 128 | } |
| 129 | |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 130 | cc_library_shared { |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 131 | name: "libmedia_jni_utils", |
| 132 | srcs: [ |
Huihong Luo | 2771365 | 2022-02-28 11:26:48 -0800 | [diff] [blame] | 133 | ":libgui_frame_event_aidl", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 134 | "android_media_Utils.cpp", |
| 135 | ], |
| 136 | |
Marco Nelissen | e83368f | 2019-10-30 07:43:49 -0700 | [diff] [blame] | 137 | header_libs: [ |
| 138 | "libgui_headers", |
| 139 | ], |
| 140 | |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 141 | shared_libs: [ |
| 142 | "liblog", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 143 | "libui", |
| 144 | "libutils", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 145 | ], |
| 146 | |
| 147 | include_dirs: [ |
| 148 | "system/media/camera/include", |
| 149 | ], |
| 150 | |
| 151 | export_include_dirs: ["."], |
| 152 | |
| 153 | cflags: [ |
| 154 | "-Wall", |
| 155 | "-Werror", |
| 156 | "-Wno-error=deprecated-declarations", |
| 157 | "-Wunused", |
| 158 | "-Wunreachable-code", |
| 159 | ], |
| 160 | } |
| 161 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 162 | cc_library_shared { |
| 163 | name: "libmedia_tv_tuner", |
Hongguang | 00ef56d | 2022-08-10 13:17:41 -0700 | [diff] [blame] | 164 | min_sdk_version: "", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 165 | srcs: [ |
| 166 | "android_media_tv_Tuner.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 167 | "tuner/DemuxClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame] | 168 | "tuner/DescramblerClient.cpp", |
Amy Zhang | 9a9ed60 | 2020-12-07 16:37:33 -0800 | [diff] [blame] | 169 | "tuner/DvrClient.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 170 | "tuner/FilterClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 171 | "tuner/FrontendClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame] | 172 | "tuner/LnbClient.cpp", |
Amy Zhang | 90a50b4 | 2021-01-11 16:58:59 -0800 | [diff] [blame] | 173 | "tuner/TimeFilterClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 174 | "tuner/TunerClient.cpp", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 175 | ], |
| 176 | |
| 177 | shared_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 178 | "android.hardware.graphics.bufferqueue@2.0", |
Ray Chin | f0a1ec8 | 2022-09-15 14:28:37 +0800 | [diff] [blame] | 179 | "android.hardware.tv.tuner-V2-ndk", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 180 | "libbinder_ndk", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 181 | "libandroid_runtime", |
shubang | 964e613 | 2019-11-26 15:05:22 -0800 | [diff] [blame] | 182 | "libcutils", |
| 183 | "libfmq", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 184 | "libhidlbase", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 185 | "liblog", |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 186 | "libmedia", |
shubang | ba21a7f | 2019-12-05 16:58:55 -0800 | [diff] [blame] | 187 | "libnativehelper", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 188 | "libutils", |
Jiyong Park | 672b134 | 2021-08-04 12:48:04 +0900 | [diff] [blame] | 189 | "tv_tuner_aidl_interface-ndk", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 190 | ], |
Amy Zhang | b5809be | 2021-01-26 16:27:23 -0800 | [diff] [blame] | 191 | |
| 192 | static_libs: [ |
| 193 | "libaidlcommonsupport", |
| 194 | ], |
| 195 | |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 196 | defaults: [ |
| 197 | "libcodec2-impl-defaults", |
| 198 | ], |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 199 | |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 200 | header_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 201 | "libcodec2_internal", |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 202 | "libstagefright_foundation_headers", |
| 203 | ], |
| 204 | |
Amy Zhang | 9abbe10 | 2021-02-08 19:51:18 -0800 | [diff] [blame] | 205 | // TunerService is a system service required for Tuner feature. |
| 206 | // TunerJNI is a client of TunerService so we build the dependency here. |
| 207 | required: ["mediatuner"], |
| 208 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 209 | export_include_dirs: ["."], |
| 210 | |
| 211 | cflags: [ |
| 212 | "-Wall", |
| 213 | "-Werror", |
| 214 | "-Wno-error=deprecated-declarations", |
| 215 | "-Wunused", |
| 216 | "-Wunreachable-code", |
| 217 | ], |
| 218 | } |