blob: d3466702ebf2edfb8d2423f24a534cb5285677da [file] [log] [blame]
Colin Cross76de4f62017-05-15 18:10:40 -07001cc_library_shared {
2 name: "libmedia_jni",
3
Wonsik Kimccb7ac62019-12-27 17:12:40 -08004 defaults: ["libcodec2-internal-defaults"],
5
Colin Cross76de4f62017-05-15 18:10:40 -07006 srcs: [
7 "android_media_ImageWriter.cpp",
8 "android_media_ImageReader.cpp",
Marco Nelissen5ff11732019-10-17 08:55:52 -07009 "android_media_JetPlayer.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070010 "android_media_MediaCrypto.cpp",
11 "android_media_MediaCodec.cpp",
12 "android_media_MediaCodecList.cpp",
13 "android_media_MediaDataSource.cpp",
14 "android_media_MediaDescrambler.cpp",
15 "android_media_MediaDrm.cpp",
16 "android_media_MediaExtractor.cpp",
17 "android_media_MediaHTTPConnection.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070018 "android_media_MediaMetadataRetriever.cpp",
19 "android_media_MediaMuxer.cpp",
20 "android_media_MediaPlayer.cpp",
21 "android_media_MediaProfiles.cpp",
22 "android_media_MediaRecorder.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070023 "android_media_MediaSync.cpp",
Linus Nilsson5a1184d2019-12-19 11:11:21 -080024 "android_media_MediaTranscodeManager.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070025 "android_media_ResampleInputStream.cpp",
Jooyung Hancb1e8962019-02-21 14:18:11 +090026 "android_media_Streams.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070027 "android_media_SyncParams.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070028 "android_mtp_MtpDatabase.cpp",
29 "android_mtp_MtpDevice.cpp",
30 "android_mtp_MtpServer.cpp",
Marco Nelissen5ff11732019-10-17 08:55:52 -070031 "JetPlayer.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070032 ],
33
34 shared_libs: [
35 "libandroid_runtime",
Marco Nelissen5ff11732019-10-17 08:55:52 -070036 "libaudioclient",
Colin Cross76de4f62017-05-15 18:10:40 -070037 "libnativehelper",
Mathias Agopian3e88ed82018-02-20 18:32:22 -080038 "libnativewindow",
Colin Cross76de4f62017-05-15 18:10:40 -070039 "libutils",
40 "libbinder",
41 "libmedia",
Dongwon Kangcc73dda2019-09-23 17:42:00 -070042 "libmedia_codeclist",
Jooyung Hancb1e8962019-02-21 14:18:11 +090043 "libmedia_jni_utils",
Jae Shina0f51ba2017-10-30 14:50:52 +090044 "libmedia_omx",
Colin Cross76de4f62017-05-15 18:10:40 -070045 "libmediametrics",
46 "libmediadrm",
Robert Shihba6777e2019-11-12 13:04:59 -080047 "libmediadrmmetrics_consumer",
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -040048 "libhwui",
Colin Cross76de4f62017-05-15 18:10:40 -070049 "libui",
50 "liblog",
51 "libcutils",
52 "libgui",
53 "libstagefright",
54 "libstagefright_foundation",
55 "libcamera_client",
56 "libmtp",
Colin Cross76de4f62017-05-15 18:10:40 -070057 "libpiex",
Suren Baghdasaryan3fc4af62018-12-14 10:32:22 -080058 "libprocessgroup",
Colin Cross76de4f62017-05-15 18:10:40 -070059 "libandroidfw",
Chong Zhangf98fc1c2018-02-13 17:55:34 -080060 "libhidlallocatorutils",
Chong Zhang2659c2f2017-04-27 13:18:20 -070061 "libhidlbase",
Marco Nelissen5ff11732019-10-17 08:55:52 -070062 "libsonivox",
Chong Zhang2659c2f2017-04-27 13:18:20 -070063 "android.hardware.cas@1.0",
64 "android.hardware.cas.native@1.0",
Robert Shihd2e8b432019-11-21 20:27:56 -080065 "android.hardware.drm@1.3",
Chong Zhang2659c2f2017-04-27 13:18:20 -070066 "android.hidl.memory@1.0",
67 "android.hidl.token@1.0-utils",
Colin Cross76de4f62017-05-15 18:10:40 -070068 ],
69
Marco Nelissena2eedd52019-09-27 11:19:36 -070070 header_libs: [
71 "libhardware_headers",
72 "libmediadrm_headers",
73 ],
Colin Cross76de4f62017-05-15 18:10:40 -070074
Marco Nelissen5ff11732019-10-17 08:55:52 -070075 static_libs: [
76 "libgrallocusage",
77 "libmedia_midiiowrapper",
78 ],
Colin Cross76de4f62017-05-15 18:10:40 -070079
80 include_dirs: [
81 "frameworks/base/core/jni",
82 "frameworks/native/include/media/openmax",
83 "system/media/camera/include",
84 ],
85
86 export_include_dirs: ["."],
87
88 export_shared_lib_headers: [
89 "libpiex",
90 ],
91
92 cflags: [
93 "-Wall",
94 "-Werror",
95 "-Wno-error=deprecated-declarations",
96 "-Wunused",
97 "-Wunreachable-code",
98 ],
Yi Kongcd1e70b2020-09-22 01:06:32 +080099
100 // Workaround Clang LTO crash.
101 lto: {
102 never: true,
103 },
Colin Cross76de4f62017-05-15 18:10:40 -0700104}
105
Wei Jia0a8a8f02017-12-05 17:05:29 -0800106cc_library_shared {
Jooyung Hancb1e8962019-02-21 14:18:11 +0900107 name: "libmedia_jni_utils",
108 srcs: [
109 "android_media_Utils.cpp",
110 ],
111
Marco Nelissene83368f2019-10-30 07:43:49 -0700112 header_libs: [
113 "libgui_headers",
114 ],
115
Jooyung Hancb1e8962019-02-21 14:18:11 +0900116 shared_libs: [
117 "liblog",
Jooyung Hancb1e8962019-02-21 14:18:11 +0900118 "libui",
119 "libutils",
Jooyung Hancb1e8962019-02-21 14:18:11 +0900120 ],
121
122 include_dirs: [
123 "system/media/camera/include",
124 ],
125
126 export_include_dirs: ["."],
127
128 cflags: [
129 "-Wall",
130 "-Werror",
131 "-Wno-error=deprecated-declarations",
132 "-Wunused",
133 "-Wunreachable-code",
134 ],
135}
136
shubang8ab43b12019-10-18 15:55:55 -0700137cc_library_shared {
138 name: "libmedia_tv_tuner",
139 srcs: [
140 "android_media_tv_Tuner.cpp",
141 ],
142
143 shared_libs: [
shubangd49681e2020-02-17 21:32:30 -0800144 "android.hardware.graphics.bufferqueue@2.0",
shubang8ab43b12019-10-18 15:55:55 -0700145 "android.hardware.tv.tuner@1.0",
146 "libandroid_runtime",
shubang964e6132019-11-26 15:05:22 -0800147 "libcutils",
148 "libfmq",
shubang7e849b02019-10-18 19:36:25 -0700149 "libhidlbase",
shubang8ab43b12019-10-18 15:55:55 -0700150 "liblog",
shubangd49681e2020-02-17 21:32:30 -0800151 "libmedia",
shubangba21a7f2019-12-05 16:58:55 -0800152 "libnativehelper",
shubang8ab43b12019-10-18 15:55:55 -0700153 "libutils",
154 ],
shubangd49681e2020-02-17 21:32:30 -0800155 defaults: [
156 "libcodec2-impl-defaults",
157 ],
shubang8ab43b12019-10-18 15:55:55 -0700158
Marco Nelissenc5391532020-01-08 12:14:31 -0800159 header_libs: [
shubangd49681e2020-02-17 21:32:30 -0800160 "libcodec2_internal",
Marco Nelissenc5391532020-01-08 12:14:31 -0800161 "libstagefright_foundation_headers",
162 ],
163
shubang8ab43b12019-10-18 15:55:55 -0700164 export_include_dirs: ["."],
165
166 cflags: [
167 "-Wall",
168 "-Werror",
169 "-Wno-error=deprecated-declarations",
170 "-Wunused",
171 "-Wunreachable-code",
172 ],
173}