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