• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_headers {
2    name: "libmedia_headers",
3    vendor_available: true,
4    export_include_dirs: ["include"],
5    header_libs:[
6        "libstagefright_headers",
7        "media_plugin_headers",
8    ],
9    export_header_lib_headers: [
10        "libstagefright_headers",
11        "media_plugin_headers",
12    ],
13}
14
15cc_library {
16    name: "libmedia_helper",
17    vendor_available: true,
18    vndk: {
19        enabled: true,
20    },
21    srcs: ["AudioParameter.cpp", "TypeConverter.cpp"],
22    cflags: [
23        "-Werror",
24        "-Wno-error=deprecated-declarations",
25        "-Wall",
26    ],
27    shared_libs: ["libutils", "liblog", "libgui"],
28    header_libs: [
29        "libmedia_headers",
30        "libaudioclient_headers",
31        "libaudio_system_headers",
32    ],
33    clang: true,
34}
35
36// TODO(b/35449087): merge back with libmedia when OMX implementatoins
37// no longer use aidl wrappers (or remove OMX component form libmedia)
38cc_defaults {
39    name: "libmedia_omx_defaults",
40
41    srcs: [
42        "aidl/android/IGraphicBufferSource.aidl",
43        "aidl/android/IOMXBufferSource.aidl",
44
45        "IMediaCodecList.cpp",
46        "IMediaCodecService.cpp",
47        "IOMX.cpp",
48        "IOMXStore.cpp",
49        "MediaCodecBuffer.cpp",
50        "MediaCodecInfo.cpp",
51        "MediaDefs.cpp",
52        "OMXBuffer.cpp",
53        "omx/1.0/WGraphicBufferSource.cpp",
54        "omx/1.0/WOmx.cpp",
55        "omx/1.0/WOmxBufferSource.cpp",
56        "omx/1.0/WOmxNode.cpp",
57        "omx/1.0/WOmxObserver.cpp",
58    ],
59
60    aidl: {
61        local_include_dirs: ["aidl"],
62        export_aidl_headers: true,
63    },
64
65    shared_libs: [
66        "android.hidl.memory@1.0",
67        "android.hidl.token@1.0-utils",
68        "android.hardware.media.omx@1.0",
69        "android.hardware.media@1.0",
70        "libbase",
71        "libbinder",
72        "libcutils",
73        "libgui",
74        "libhidlbase",
75        "libhidlmemory",
76        "libhidltransport",
77        "libhwbinder",
78        "liblog",
79        "libstagefright_foundation",
80        "libui",
81        "libutils",
82    ],
83
84    export_shared_lib_headers: [
85        "android.hidl.memory@1.0",
86        "android.hidl.token@1.0-utils",
87        "android.hardware.media.omx@1.0",
88        "android.hardware.media@1.0",
89        "libhidlmemory",
90        "libstagefright_foundation",
91        "libui",
92    ],
93
94    header_libs: [
95        "libmedia_headers",
96    ],
97
98    export_header_lib_headers: [
99        "libmedia_headers",
100    ],
101
102    export_include_dirs: [
103        "aidl",
104    ],
105
106    cflags: [
107        "-Werror",
108        "-Wno-error=deprecated-declarations",
109        "-Wall",
110    ],
111
112    sanitize: {
113        misc_undefined: [
114            "unsigned-integer-overflow",
115            "signed-integer-overflow",
116        ],
117        cfi: true,
118        diag: {
119            cfi: true,
120        },
121    },
122}
123
124cc_library_shared {
125    name: "libmedia_omx",
126    vendor_available: true,
127    vndk: {
128        enabled: true,
129    },
130
131    defaults: ["libmedia_omx_defaults"],
132}
133
134cc_library_shared {
135    name: "libmedia",
136    defaults: ["libmedia_omx_defaults"],
137
138    srcs: [
139        "IDataSource.cpp",
140        "IHDCP.cpp",
141        "BufferingSettings.cpp",
142        "mediaplayer.cpp",
143        "IMediaHTTPConnection.cpp",
144        "IMediaHTTPService.cpp",
145        "IMediaExtractor.cpp",
146        "IMediaExtractorService.cpp",
147        "IMediaPlayerService.cpp",
148        "IMediaPlayerClient.cpp",
149        "IMediaRecorderClient.cpp",
150        "IMediaPlayer.cpp",
151        "IMediaRecorder.cpp",
152        "IMediaSource.cpp",
153        "IRemoteDisplay.cpp",
154        "IRemoteDisplayClient.cpp",
155        "IResourceManagerClient.cpp",
156        "IResourceManagerService.cpp",
157        "IStreamSource.cpp",
158        "MediaUtils.cpp",
159        "Metadata.cpp",
160        "mediarecorder.cpp",
161        "IMediaMetadataRetriever.cpp",
162        "mediametadataretriever.cpp",
163        "MidiDeviceInfo.cpp",
164        "MidiIoWrapper.cpp",
165        "JetPlayer.cpp",
166        "MediaScanner.cpp",
167        "MediaScannerClient.cpp",
168        "CharacterEncodingDetector.cpp",
169        "IMediaDeathNotifier.cpp",
170        "MediaProfiles.cpp",
171        "MediaResource.cpp",
172        "MediaResourcePolicy.cpp",
173        "Visualizer.cpp",
174        "StringArray.cpp",
175    ],
176
177    shared_libs: [
178        "libui",
179        "liblog",
180        "libcutils",
181        "libutils",
182        "libbinder",
183        "libsonivox",
184        "libicuuc",
185        "libicui18n",
186        "libexpat",
187        "libcamera_client",
188        "libstagefright_foundation",
189        "libgui",
190        "libdl",
191        "libaudioutils",
192        "libaudioclient",
193        "libmedia_helper",
194        "libmediadrm",
195        "libmediametrics",
196        "libbase",
197        "libhidlbase",
198        "libhidltransport",
199        "libhwbinder",
200        "libhidlmemory",
201        "android.hidl.memory@1.0",
202        "android.hardware.graphics.common@1.0",
203        "android.hardware.graphics.bufferqueue@1.0",
204    ],
205
206    export_shared_lib_headers: [
207        "libbinder",
208        "libicuuc",
209        "libicui18n",
210        "libsonivox",
211        "libmediadrm",
212        "libmedia_helper",
213        "android.hidl.memory@1.0",
214    ],
215
216    // for memory heap analysis
217    static_libs: [
218        "libc_malloc_debug_backtrace",
219    ],
220
221    export_include_dirs: [
222        "include",
223    ],
224
225    cflags: [
226        "-Werror",
227        "-Wno-error=deprecated-declarations",
228        "-Wall",
229    ],
230
231    sanitize: {
232        misc_undefined: [
233            "unsigned-integer-overflow",
234            "signed-integer-overflow",
235        ],
236        cfi: true,
237        diag: {
238            cfi: true,
239        },
240    },
241}
242