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 | |
Wonsik Kim | ccb7ac6 | 2019-12-27 17:12:40 -0800 | [diff] [blame] | 21 | defaults: ["libcodec2-internal-defaults"], |
Jiyong Park | 147c20f | 2021-03-16 22:29:45 +0900 | [diff] [blame] | 22 | min_sdk_version: "", |
Wonsik Kim | ccb7ac6 | 2019-12-27 17:12:40 -0800 | [diff] [blame] | 23 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 24 | srcs: [ |
| 25 | "android_media_ImageWriter.cpp", |
| 26 | "android_media_ImageReader.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 27 | "android_media_JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 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", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 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", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 41 | "android_media_MediaSync.cpp", |
| 42 | "android_media_ResampleInputStream.cpp", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 43 | "android_media_Streams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 44 | "android_media_SyncParams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 45 | "android_mtp_MtpDatabase.cpp", |
| 46 | "android_mtp_MtpDevice.cpp", |
| 47 | "android_mtp_MtpServer.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 48 | "JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | shared_libs: [ |
Jeongik Cha | 969b921 | 2021-01-28 00:49:47 +0900 | [diff] [blame] | 52 | "audioclient-types-aidl-cpp", |
| 53 | "av-types-aidl-cpp", |
Svet Ganov | 2eebf92 | 2021-05-20 15:09:08 +0000 | [diff] [blame] | 54 | "framework-permission-aidl-cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 55 | "libandroid_runtime", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 56 | "libaudioclient", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 57 | "libnativehelper", |
Mathias Agopian | 3e88ed8 | 2018-02-20 18:32:22 -0800 | [diff] [blame] | 58 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 59 | "libutils", |
| 60 | "libbinder", |
| 61 | "libmedia", |
Dongwon Kang | cc73dda | 2019-09-23 17:42:00 -0700 | [diff] [blame] | 62 | "libmedia_codeclist", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 63 | "libmedia_jni_utils", |
Jae Shin | a0f51ba | 2017-10-30 14:50:52 +0900 | [diff] [blame] | 64 | "libmedia_omx", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 65 | "libmediametrics", |
| 66 | "libmediadrm", |
Robert Shih | ba6777e | 2019-11-12 13:04:59 -0800 | [diff] [blame] | 67 | "libmediadrmmetrics_consumer", |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 68 | "libhwui", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 69 | "libui", |
| 70 | "liblog", |
| 71 | "libcutils", |
| 72 | "libgui", |
| 73 | "libstagefright", |
| 74 | "libstagefright_foundation", |
| 75 | "libcamera_client", |
| 76 | "libmtp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 77 | "libpiex", |
Suren Baghdasaryan | 3fc4af6 | 2018-12-14 10:32:22 -0800 | [diff] [blame] | 78 | "libprocessgroup", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 79 | "libandroidfw", |
Chong Zhang | f98fc1c | 2018-02-13 17:55:34 -0800 | [diff] [blame] | 80 | "libhidlallocatorutils", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 81 | "libhidlbase", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 82 | "libsonivox", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 83 | "android.hardware.cas@1.0", |
| 84 | "android.hardware.cas.native@1.0", |
Robert Shih | d2e8b43 | 2019-11-21 20:27:56 -0800 | [diff] [blame] | 85 | "android.hardware.drm@1.3", |
Robert Shih | 696989f | 2021-02-12 23:25:16 -0800 | [diff] [blame] | 86 | "android.hardware.drm@1.4", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 87 | "android.hidl.memory@1.0", |
| 88 | "android.hidl.token@1.0-utils", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 89 | ], |
| 90 | |
Marco Nelissen | a2eedd5 | 2019-09-27 11:19:36 -0700 | [diff] [blame] | 91 | header_libs: [ |
| 92 | "libhardware_headers", |
| 93 | "libmediadrm_headers", |
| 94 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 95 | |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 96 | static_libs: [ |
| 97 | "libgrallocusage", |
| 98 | "libmedia_midiiowrapper", |
| 99 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 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 | ], |
Yi Kong | cd1e70b | 2020-09-22 01:06:32 +0800 | [diff] [blame] | 120 | |
| 121 | // Workaround Clang LTO crash. |
| 122 | lto: { |
| 123 | never: true, |
| 124 | }, |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 125 | } |
| 126 | |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 127 | cc_library_shared { |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 128 | name: "libmedia_jni_utils", |
| 129 | srcs: [ |
| 130 | "android_media_Utils.cpp", |
| 131 | ], |
| 132 | |
Marco Nelissen | e83368f | 2019-10-30 07:43:49 -0700 | [diff] [blame] | 133 | header_libs: [ |
| 134 | "libgui_headers", |
| 135 | ], |
| 136 | |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 137 | shared_libs: [ |
| 138 | "liblog", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 139 | "libui", |
| 140 | "libutils", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 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 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 158 | cc_library_shared { |
| 159 | name: "libmedia_tv_tuner", |
Amy Zhang | 39a3fa4 | 2020-12-21 16:56:03 -0800 | [diff] [blame] | 160 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 161 | srcs: [ |
| 162 | "android_media_tv_Tuner.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 163 | "tuner/DemuxClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame] | 164 | "tuner/DescramblerClient.cpp", |
Amy Zhang | 9a9ed60 | 2020-12-07 16:37:33 -0800 | [diff] [blame] | 165 | "tuner/DvrClient.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 166 | "tuner/FilterClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 167 | "tuner/FrontendClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame] | 168 | "tuner/LnbClient.cpp", |
Amy Zhang | 90a50b4 | 2021-01-11 16:58:59 -0800 | [diff] [blame] | 169 | "tuner/TimeFilterClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 170 | "tuner/TunerClient.cpp", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 171 | ], |
| 172 | |
| 173 | shared_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 174 | "android.hardware.graphics.bufferqueue@2.0", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 175 | "android.hardware.tv.tuner@1.0", |
Amy Zhang | b13e304 | 2020-07-27 14:50:10 -0700 | [diff] [blame] | 176 | "android.hardware.tv.tuner@1.1", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 177 | "libbinder_ndk", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 178 | "libandroid_runtime", |
shubang | 964e613 | 2019-11-26 15:05:22 -0800 | [diff] [blame] | 179 | "libcutils", |
| 180 | "libfmq", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 181 | "libhidlbase", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 182 | "liblog", |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 183 | "libmedia", |
shubang | ba21a7f | 2019-12-05 16:58:55 -0800 | [diff] [blame] | 184 | "libnativehelper", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 185 | "libutils", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 186 | "tv_tuner_aidl_interface-ndk_platform", |
Philip P. Moltmann | fece243 | 2020-07-17 16:39:54 -0700 | [diff] [blame] | 187 | "tv_tuner_resource_manager_aidl_interface-ndk_platform", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 188 | ], |
Amy Zhang | b5809be | 2021-01-26 16:27:23 -0800 | [diff] [blame] | 189 | |
| 190 | static_libs: [ |
| 191 | "libaidlcommonsupport", |
| 192 | ], |
| 193 | |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 194 | defaults: [ |
| 195 | "libcodec2-impl-defaults", |
| 196 | ], |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 197 | |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 198 | header_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 199 | "libcodec2_internal", |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 200 | "libstagefright_foundation_headers", |
| 201 | ], |
| 202 | |
Amy Zhang | 9abbe10 | 2021-02-08 19:51:18 -0800 | [diff] [blame] | 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 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 207 | export_include_dirs: ["."], |
| 208 | |
| 209 | cflags: [ |
| 210 | "-Wall", |
| 211 | "-Werror", |
| 212 | "-Wno-error=deprecated-declarations", |
| 213 | "-Wunused", |
| 214 | "-Wunreachable-code", |
| 215 | ], |
| 216 | } |