blob: 25c7b5cc5cd6af64d5e0a96ce44619f79c8984b9 [file] [log] [blame]
Colin Cross76de4f62017-05-15 18:10:40 -07001cc_library_shared {
2 name: "libmedia_jni",
3
4 srcs: [
5 "android_media_ImageWriter.cpp",
6 "android_media_ImageReader.cpp",
7 "android_media_MediaCrypto.cpp",
8 "android_media_MediaCodec.cpp",
9 "android_media_MediaCodecList.cpp",
10 "android_media_MediaDataSource.cpp",
11 "android_media_MediaDescrambler.cpp",
12 "android_media_MediaDrm.cpp",
13 "android_media_MediaExtractor.cpp",
14 "android_media_MediaHTTPConnection.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070015 "android_media_MediaMetadataRetriever.cpp",
16 "android_media_MediaMuxer.cpp",
17 "android_media_MediaPlayer.cpp",
18 "android_media_MediaProfiles.cpp",
19 "android_media_MediaRecorder.cpp",
20 "android_media_MediaScanner.cpp",
21 "android_media_MediaSync.cpp",
22 "android_media_ResampleInputStream.cpp",
23 "android_media_SyncParams.cpp",
24 "android_media_Utils.cpp",
25 "android_mtp_MtpDatabase.cpp",
26 "android_mtp_MtpDevice.cpp",
27 "android_mtp_MtpServer.cpp",
28 "midi/android_media_midi_MidiDevice.cpp",
29 ],
30
31 shared_libs: [
32 "libandroid_runtime",
33 "libnativehelper",
Mathias Agopian3e88ed82018-02-20 18:32:22 -080034 "libnativewindow",
Colin Cross76de4f62017-05-15 18:10:40 -070035 "libutils",
36 "libbinder",
37 "libmedia",
Marco Nelissen4045a062018-01-29 11:29:09 -080038 "libmediaextractor",
Jae Shina0f51ba2017-10-30 14:50:52 +090039 "libmedia_omx",
Colin Cross76de4f62017-05-15 18:10:40 -070040 "libmediametrics",
41 "libmediadrm",
42 "libmidi",
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -040043 "libhwui",
Colin Cross76de4f62017-05-15 18:10:40 -070044 "libui",
45 "liblog",
46 "libcutils",
47 "libgui",
48 "libstagefright",
49 "libstagefright_foundation",
50 "libcamera_client",
51 "libmtp",
52 "libexif",
53 "libpiex",
Suren Baghdasaryan9c9b0252018-12-14 10:32:22 -080054 "libprocessgroup",
Colin Cross76de4f62017-05-15 18:10:40 -070055 "libandroidfw",
Chong Zhangf98fc1c2018-02-13 17:55:34 -080056 "libhidlallocatorutils",
Chong Zhang2659c2f2017-04-27 13:18:20 -070057 "libhidlbase",
58 "libhidltransport",
59 "android.hardware.cas@1.0",
60 "android.hardware.cas.native@1.0",
61 "android.hidl.memory@1.0",
62 "android.hidl.token@1.0-utils",
Colin Cross76de4f62017-05-15 18:10:40 -070063 ],
64
65 header_libs: ["libhardware_headers"],
66
67 static_libs: ["libgrallocusage"],
68
69 include_dirs: [
70 "frameworks/base/core/jni",
71 "frameworks/native/include/media/openmax",
72 "system/media/camera/include",
73 ],
74
75 export_include_dirs: ["."],
76
77 export_shared_lib_headers: [
78 "libpiex",
79 ],
80
81 cflags: [
82 "-Wall",
83 "-Werror",
84 "-Wno-error=deprecated-declarations",
85 "-Wunused",
86 "-Wunreachable-code",
Chih-Hung Hsiehe8abd062018-10-22 09:56:12 -070087 // Allow implicit fallthroughs in android_media_MediaScanner.cpp and
88 // android_mtp_MtpDatabase.cpp until they are fixed.
89 "-Wno-error=implicit-fallthrough",
Colin Cross76de4f62017-05-15 18:10:40 -070090 ],
91}
92
Wei Jia0a8a8f02017-12-05 17:05:29 -080093cc_library_shared {
94 name: "libmedia2_jni",
95
96 srcs: [
97 "android_media_Media2HTTPConnection.cpp",
98 "android_media_Media2HTTPService.cpp",
99 "android_media_MediaCrypto.cpp",
100 "android_media_Media2DataSource.cpp",
101 "android_media_MediaDrm.cpp",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800102 "android_media_MediaPlayer2.cpp",
103 "android_media_SyncParams.cpp",
104 ],
105
106 shared_libs: [
107 "android.hardware.cas@1.0", // for CasManager. VNDK???
108 "android.hardware.cas.native@1.0", // CasManager. VNDK???
109 "libandroid", // NDK
110 "libandroid_runtime", // ???
111 "libaudioclient", // for use of AudioTrack, AudioSystem. to be removed
112 "liblog", // NDK
Steven Moreland9f590ad2018-07-17 10:11:34 -0700113 "libbinder",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800114 "libdrmframework", // for FileSource, MediaHTTP
115 "libgui", // for VideoFrameScheduler
Chong Zhangf98fc1c2018-02-13 17:55:34 -0800116 "libhidlallocatorutils",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800117 "libhidlbase", // VNDK???
118 "libmediandk", // NDK
119 "libpowermanager", // for JWakeLock. to be removed
Wei Jia04a6e932018-01-25 10:13:42 -0800120
121 "libutils", // Have to use shared lib to make libandroid_runtime behave correctly.
122 // Otherwise, AndroidRuntime::getJNIEnv() will return NULL.
Wei Jia0a8a8f02017-12-05 17:05:29 -0800123 ],
124
125 header_libs: ["libhardware_headers"],
126
127 static_libs: [
128 "libbacktrace",
129 "libbase",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800130 "libc_malloc_debug_backtrace",
131 "libcrypto",
132 "libcutils",
133 "libdexfile",
134 "liblzma",
Suren Baghdasaryan9c9b0252018-12-14 10:32:22 -0800135 "libjsoncpp",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800136 "libmedia_helper",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800137 "libmedia_player2_util",
138 "libmediadrm",
139 "libmediaextractor",
140 "libmediametrics",
Wei Jiac3c31a532018-02-05 16:18:27 -0800141 "libmediaplayer2",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800142 "libmediautils",
143 "libnativehelper",
144 "libnetd_client",
Suren Baghdasaryan9c9b0252018-12-14 10:32:22 -0800145 "libprocessgroup",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800146 "libstagefright_esds",
147 "libstagefright_foundation",
148 "libstagefright_httplive",
149 "libstagefright_id3",
150 "libstagefright_mpeg2support",
151 "libstagefright_nuplayer2",
152 "libstagefright_player2",
153 "libstagefright_rtsp",
154 "libstagefright_timedtext",
155 "libunwindstack",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800156 "libutilscallstack",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800157 "libz",
158 "libziparchive",
159 ],
160
161 group_static_libs: true,
162
163 include_dirs: [
164 "frameworks/base/core/jni",
165 "frameworks/native/include/media/openmax",
166 "system/media/camera/include",
167 ],
168
169 export_include_dirs: ["."],
170
171 cflags: [
172 "-Wall",
173 "-Werror",
174 "-Wno-error=deprecated-declarations",
175 "-Wunused",
176 "-Wunreachable-code",
177 ],
178
179 ldflags: ["-Wl,--exclude-libs=ALL"],
180}
181
Colin Cross76de4f62017-05-15 18:10:40 -0700182subdirs = [
183 "audioeffect",
Colin Cross98c127f2017-05-16 13:08:19 -0700184 "soundpool",
Colin Cross76de4f62017-05-15 18:10:40 -0700185]