blob: 0ba45f1391c55b242deb2cf11f4832c9ba3ff2eb [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",
54 "libandroidfw",
Chong Zhangf98fc1c2018-02-13 17:55:34 -080055 "libhidlallocatorutils",
Chong Zhang2659c2f2017-04-27 13:18:20 -070056 "libhidlbase",
57 "libhidltransport",
58 "android.hardware.cas@1.0",
59 "android.hardware.cas.native@1.0",
60 "android.hidl.memory@1.0",
61 "android.hidl.token@1.0-utils",
Colin Cross76de4f62017-05-15 18:10:40 -070062 ],
63
64 header_libs: ["libhardware_headers"],
65
66 static_libs: ["libgrallocusage"],
67
68 include_dirs: [
69 "frameworks/base/core/jni",
70 "frameworks/native/include/media/openmax",
71 "system/media/camera/include",
72 ],
73
74 export_include_dirs: ["."],
75
76 export_shared_lib_headers: [
77 "libpiex",
78 ],
79
80 cflags: [
81 "-Wall",
82 "-Werror",
83 "-Wno-error=deprecated-declarations",
84 "-Wunused",
85 "-Wunreachable-code",
86 ],
87}
88
Wei Jia0a8a8f02017-12-05 17:05:29 -080089cc_library_shared {
90 name: "libmedia2_jni",
91
92 srcs: [
93 "android_media_Media2HTTPConnection.cpp",
94 "android_media_Media2HTTPService.cpp",
95 "android_media_MediaCrypto.cpp",
96 "android_media_Media2DataSource.cpp",
97 "android_media_MediaDrm.cpp",
Wei Jia0a8a8f02017-12-05 17:05:29 -080098 "android_media_MediaPlayer2.cpp",
99 "android_media_SyncParams.cpp",
100 ],
101
102 shared_libs: [
103 "android.hardware.cas@1.0", // for CasManager. VNDK???
104 "android.hardware.cas.native@1.0", // CasManager. VNDK???
105 "libandroid", // NDK
106 "libandroid_runtime", // ???
107 "libaudioclient", // for use of AudioTrack, AudioSystem. to be removed
108 "liblog", // NDK
109 "libdrmframework", // for FileSource, MediaHTTP
110 "libgui", // for VideoFrameScheduler
Chong Zhangf98fc1c2018-02-13 17:55:34 -0800111 "libhidlallocatorutils",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800112 "libhidlbase", // VNDK???
113 "libmediandk", // NDK
114 "libpowermanager", // for JWakeLock. to be removed
Wei Jia04a6e932018-01-25 10:13:42 -0800115
116 "libutils", // Have to use shared lib to make libandroid_runtime behave correctly.
117 // Otherwise, AndroidRuntime::getJNIEnv() will return NULL.
Wei Jia0a8a8f02017-12-05 17:05:29 -0800118 ],
119
120 header_libs: ["libhardware_headers"],
121
122 static_libs: [
123 "libbacktrace",
124 "libbase",
125 "libbinder",
126 "libc_malloc_debug_backtrace",
127 "libcrypto",
128 "libcutils",
129 "libdexfile",
130 "liblzma",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800131 "libmedia_helper",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800132 "libmedia_player2_util",
133 "libmediadrm",
134 "libmediaextractor",
135 "libmediametrics",
Wei Jiac3c31a532018-02-05 16:18:27 -0800136 "libmediaplayer2",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800137 "libmediautils",
138 "libnativehelper",
139 "libnetd_client",
140 "libstagefright_esds",
141 "libstagefright_foundation",
142 "libstagefright_httplive",
143 "libstagefright_id3",
144 "libstagefright_mpeg2support",
145 "libstagefright_nuplayer2",
146 "libstagefright_player2",
147 "libstagefright_rtsp",
148 "libstagefright_timedtext",
149 "libunwindstack",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800150 "libutilscallstack",
Wei Jia0a8a8f02017-12-05 17:05:29 -0800151 "libz",
152 "libziparchive",
153 ],
154
155 group_static_libs: true,
156
157 include_dirs: [
158 "frameworks/base/core/jni",
159 "frameworks/native/include/media/openmax",
160 "system/media/camera/include",
161 ],
162
163 export_include_dirs: ["."],
164
165 cflags: [
166 "-Wall",
167 "-Werror",
168 "-Wno-error=deprecated-declarations",
169 "-Wunused",
170 "-Wunreachable-code",
171 ],
172
173 ldflags: ["-Wl,--exclude-libs=ALL"],
174}
175
Colin Cross76de4f62017-05-15 18:10:40 -0700176subdirs = [
177 "audioeffect",
Colin Cross98c127f2017-05-16 13:08:19 -0700178 "soundpool",
Colin Cross76de4f62017-05-15 18:10:40 -0700179]