blob: bc73f6ad1ad2a457dc658cda5dd5022715b34624 [file] [log] [blame]
Bob Badour8a6a2bc2021-02-12 17:07:05 -08001package {
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
Colin Cross76de4f62017-05-15 18:10:40 -070018cc_library_shared {
19 name: "libmedia_jni",
20
Wonsik Kimccb7ac62019-12-27 17:12:40 -080021 defaults: ["libcodec2-internal-defaults"],
Jiyong Park147c20f2021-03-16 22:29:45 +090022 min_sdk_version: "",
Wonsik Kimccb7ac62019-12-27 17:12:40 -080023
Colin Cross76de4f62017-05-15 18:10:40 -070024 srcs: [
25 "android_media_ImageWriter.cpp",
26 "android_media_ImageReader.cpp",
Marco Nelissen5ff11732019-10-17 08:55:52 -070027 "android_media_JetPlayer.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070028 "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 Cross76de4f62017-05-15 18:10:40 -070036 "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 Cross76de4f62017-05-15 18:10:40 -070041 "android_media_MediaSync.cpp",
42 "android_media_ResampleInputStream.cpp",
Jooyung Hancb1e8962019-02-21 14:18:11 +090043 "android_media_Streams.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070044 "android_media_SyncParams.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070045 "android_mtp_MtpDatabase.cpp",
46 "android_mtp_MtpDevice.cpp",
47 "android_mtp_MtpServer.cpp",
Marco Nelissen5ff11732019-10-17 08:55:52 -070048 "JetPlayer.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070049 ],
50
51 shared_libs: [
Jeongik Cha969b9212021-01-28 00:49:47 +090052 "audioclient-types-aidl-cpp",
53 "av-types-aidl-cpp",
Svet Ganov2eebf922021-05-20 15:09:08 +000054 "framework-permission-aidl-cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070055 "libandroid_runtime",
Marco Nelissen5ff11732019-10-17 08:55:52 -070056 "libaudioclient",
Colin Cross76de4f62017-05-15 18:10:40 -070057 "libnativehelper",
Mathias Agopian3e88ed82018-02-20 18:32:22 -080058 "libnativewindow",
Colin Cross76de4f62017-05-15 18:10:40 -070059 "libutils",
60 "libbinder",
61 "libmedia",
Dongwon Kangcc73dda2019-09-23 17:42:00 -070062 "libmedia_codeclist",
Jooyung Hancb1e8962019-02-21 14:18:11 +090063 "libmedia_jni_utils",
Jae Shina0f51ba2017-10-30 14:50:52 +090064 "libmedia_omx",
Colin Cross76de4f62017-05-15 18:10:40 -070065 "libmediametrics",
66 "libmediadrm",
Robert Shihba6777e2019-11-12 13:04:59 -080067 "libmediadrmmetrics_consumer",
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -040068 "libhwui",
Colin Cross76de4f62017-05-15 18:10:40 -070069 "libui",
70 "liblog",
71 "libcutils",
72 "libgui",
73 "libstagefright",
74 "libstagefright_foundation",
75 "libcamera_client",
76 "libmtp",
Colin Cross76de4f62017-05-15 18:10:40 -070077 "libpiex",
Suren Baghdasaryan3fc4af62018-12-14 10:32:22 -080078 "libprocessgroup",
Colin Cross76de4f62017-05-15 18:10:40 -070079 "libandroidfw",
Chong Zhangf98fc1c2018-02-13 17:55:34 -080080 "libhidlallocatorutils",
Chong Zhang2659c2f2017-04-27 13:18:20 -070081 "libhidlbase",
Marco Nelissen5ff11732019-10-17 08:55:52 -070082 "libsonivox",
Chong Zhang2659c2f2017-04-27 13:18:20 -070083 "android.hardware.cas@1.0",
84 "android.hardware.cas.native@1.0",
Robert Shihd2e8b432019-11-21 20:27:56 -080085 "android.hardware.drm@1.3",
Robert Shih696989f2021-02-12 23:25:16 -080086 "android.hardware.drm@1.4",
Chong Zhang2659c2f2017-04-27 13:18:20 -070087 "android.hidl.memory@1.0",
88 "android.hidl.token@1.0-utils",
Colin Cross76de4f62017-05-15 18:10:40 -070089 ],
90
Marco Nelissena2eedd52019-09-27 11:19:36 -070091 header_libs: [
92 "libhardware_headers",
93 "libmediadrm_headers",
94 ],
Colin Cross76de4f62017-05-15 18:10:40 -070095
Marco Nelissen5ff11732019-10-17 08:55:52 -070096 static_libs: [
97 "libgrallocusage",
98 "libmedia_midiiowrapper",
99 ],
Colin Cross76de4f62017-05-15 18:10:40 -0700100
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 Kongcd1e70b2020-09-22 01:06:32 +0800120
121 // Workaround Clang LTO crash.
122 lto: {
123 never: true,
124 },
Colin Cross76de4f62017-05-15 18:10:40 -0700125}
126
Wei Jia0a8a8f02017-12-05 17:05:29 -0800127cc_library_shared {
Jooyung Hancb1e8962019-02-21 14:18:11 +0900128 name: "libmedia_jni_utils",
129 srcs: [
130 "android_media_Utils.cpp",
131 ],
132
Marco Nelissene83368f2019-10-30 07:43:49 -0700133 header_libs: [
134 "libgui_headers",
135 ],
136
Jooyung Hancb1e8962019-02-21 14:18:11 +0900137 shared_libs: [
138 "liblog",
Jooyung Hancb1e8962019-02-21 14:18:11 +0900139 "libui",
140 "libutils",
Jooyung Hancb1e8962019-02-21 14:18:11 +0900141 ],
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
shubang8ab43b12019-10-18 15:55:55 -0700158cc_library_shared {
159 name: "libmedia_tv_tuner",
Amy Zhang39a3fa42020-12-21 16:56:03 -0800160
shubang8ab43b12019-10-18 15:55:55 -0700161 srcs: [
162 "android_media_tv_Tuner.cpp",
Amy Zhang6bfeaa02020-11-30 15:16:39 -0800163 "tuner/DemuxClient.cpp",
Amy Zhangb0f63ab2021-01-06 17:19:27 -0800164 "tuner/DescramblerClient.cpp",
Amy Zhang9a9ed602020-12-07 16:37:33 -0800165 "tuner/DvrClient.cpp",
Amy Zhang6bfeaa02020-11-30 15:16:39 -0800166 "tuner/FilterClient.cpp",
Amy Zhangbf68a162020-11-23 17:42:40 -0800167 "tuner/FrontendClient.cpp",
Amy Zhangb0f63ab2021-01-06 17:19:27 -0800168 "tuner/LnbClient.cpp",
Amy Zhang90a50b42021-01-11 16:58:59 -0800169 "tuner/TimeFilterClient.cpp",
Amy Zhangbf68a162020-11-23 17:42:40 -0800170 "tuner/TunerClient.cpp",
shubang8ab43b12019-10-18 15:55:55 -0700171 ],
172
173 shared_libs: [
shubangd49681e2020-02-17 21:32:30 -0800174 "android.hardware.graphics.bufferqueue@2.0",
shubang8ab43b12019-10-18 15:55:55 -0700175 "android.hardware.tv.tuner@1.0",
Amy Zhangb13e3042020-07-27 14:50:10 -0700176 "android.hardware.tv.tuner@1.1",
Amy Zhangbf68a162020-11-23 17:42:40 -0800177 "libbinder_ndk",
shubang8ab43b12019-10-18 15:55:55 -0700178 "libandroid_runtime",
shubang964e6132019-11-26 15:05:22 -0800179 "libcutils",
180 "libfmq",
shubang7e849b02019-10-18 19:36:25 -0700181 "libhidlbase",
shubang8ab43b12019-10-18 15:55:55 -0700182 "liblog",
shubangd49681e2020-02-17 21:32:30 -0800183 "libmedia",
shubangba21a7f2019-12-05 16:58:55 -0800184 "libnativehelper",
shubang8ab43b12019-10-18 15:55:55 -0700185 "libutils",
Amy Zhangbf68a162020-11-23 17:42:40 -0800186 "tv_tuner_aidl_interface-ndk_platform",
Philip P. Moltmannfece2432020-07-17 16:39:54 -0700187 "tv_tuner_resource_manager_aidl_interface-ndk_platform",
shubang8ab43b12019-10-18 15:55:55 -0700188 ],
Amy Zhangb5809be2021-01-26 16:27:23 -0800189
190 static_libs: [
191 "libaidlcommonsupport",
192 ],
193
shubangd49681e2020-02-17 21:32:30 -0800194 defaults: [
195 "libcodec2-impl-defaults",
196 ],
shubang8ab43b12019-10-18 15:55:55 -0700197
Marco Nelissenc5391532020-01-08 12:14:31 -0800198 header_libs: [
shubangd49681e2020-02-17 21:32:30 -0800199 "libcodec2_internal",
Marco Nelissenc5391532020-01-08 12:14:31 -0800200 "libstagefright_foundation_headers",
201 ],
202
Amy Zhang9abbe102021-02-08 19:51:18 -0800203 // 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
shubang8ab43b12019-10-18 15:55:55 -0700207 export_include_dirs: ["."],
208
209 cflags: [
210 "-Wall",
211 "-Werror",
212 "-Wno-error=deprecated-declarations",
213 "-Wunused",
214 "-Wunreachable-code",
215 ],
216}