• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_PublicFormatUtils.cpp",
43        "android_media_ResampleInputStream.cpp",
44        "android_media_Streams.cpp",
45        "android_media_SyncParams.cpp",
46        "android_mtp_MtpDatabase.cpp",
47        "android_mtp_MtpDevice.cpp",
48        "android_mtp_MtpServer.cpp",
49        "JetPlayer.cpp",
50    ],
51
52    shared_libs: [
53        "audioclient-types-aidl-cpp",
54        "av-types-aidl-cpp",
55        "framework-permission-aidl-cpp",
56        "libandroid_runtime",
57        "libaudioclient",
58        "libnativehelper",
59        "libnativewindow",
60        "libutils",
61        "libbinder",
62        "libmedia",
63        "libmedia_codeclist",
64        "libmedia_jni_utils",
65        "libmedia_omx",
66        "libmediametrics",
67        "libmediadrm",
68        "libmediadrmmetrics_consumer",
69        "libhwui",
70        "libui",
71        "liblog",
72        "libcutils",
73        "libgui",
74        "libstagefright",
75        "libstagefright_foundation",
76        "libcamera_client",
77        "libmtp",
78        "libpiex",
79        "libprocessgroup",
80        "libandroidfw",
81        "libhidlallocatorutils",
82        "libhidlbase",
83        "libsonivox",
84        "android.hardware.cas@1.0",
85        "android.hardware.cas.native@1.0",
86        "android.hardware.drm@1.3",
87        "android.hardware.drm@1.4",
88        "android.hidl.memory@1.0",
89        "android.hidl.token@1.0-utils",
90        "android.hardware.drm-V1-ndk",
91    ],
92
93    header_libs: [
94        "libhardware_headers",
95        "libmediadrm_headers",
96    ],
97
98    static_libs: [
99        "libgrallocusage",
100        "libmedia_midiiowrapper",
101    ],
102
103    include_dirs: [
104        "frameworks/base/core/jni",
105        "frameworks/native/include/media/openmax",
106        "system/media/camera/include",
107    ],
108
109    export_include_dirs: ["."],
110
111    export_shared_lib_headers: [
112        "libpiex",
113    ],
114
115    cflags: [
116        "-Wall",
117        "-Werror",
118        "-Wno-error=deprecated-declarations",
119        "-Wunused",
120        "-Wunreachable-code",
121    ],
122
123    // Workaround Clang LTO crash.
124    lto: {
125        never: true,
126    },
127}
128
129cc_library_shared {
130    name: "libmedia_jni_utils",
131    srcs: [
132        "android_media_Utils.cpp",
133    ],
134
135    header_libs: [
136        "libgui_headers",
137    ],
138
139    shared_libs: [
140        "liblog",
141        "libui",
142        "libutils",
143    ],
144
145    include_dirs: [
146        "system/media/camera/include",
147    ],
148
149    export_include_dirs: ["."],
150
151    cflags: [
152        "-Wall",
153        "-Werror",
154        "-Wno-error=deprecated-declarations",
155        "-Wunused",
156        "-Wunreachable-code",
157    ],
158}
159
160cc_library_shared {
161    name: "libmedia_tv_tuner",
162
163    srcs: [
164        "android_media_tv_Tuner.cpp",
165        "tuner/DemuxClient.cpp",
166        "tuner/DescramblerClient.cpp",
167        "tuner/DvrClient.cpp",
168        "tuner/FilterClient.cpp",
169        "tuner/FrontendClient.cpp",
170        "tuner/LnbClient.cpp",
171        "tuner/TimeFilterClient.cpp",
172        "tuner/TunerClient.cpp",
173    ],
174
175    shared_libs: [
176        "android.hardware.graphics.bufferqueue@2.0",
177        "android.hardware.tv.tuner-V1-ndk",
178        "libbinder_ndk",
179        "libandroid_runtime",
180        "libcutils",
181        "libfmq",
182        "libhidlbase",
183        "liblog",
184        "libmedia",
185        "libnativehelper",
186        "libutils",
187        "tv_tuner_aidl_interface-ndk",
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