Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "libmedia_jni", |
| 3 | |
Wonsik Kim | ccb7ac6 | 2019-12-27 17:12:40 -0800 | [diff] [blame] | 4 | defaults: ["libcodec2-internal-defaults"], |
| 5 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 6 | srcs: [ |
| 7 | "android_media_ImageWriter.cpp", |
| 8 | "android_media_ImageReader.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 9 | "android_media_JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 10 | "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 Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 18 | "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 Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 23 | "android_media_MediaSync.cpp", |
| 24 | "android_media_ResampleInputStream.cpp", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 25 | "android_media_Streams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 26 | "android_media_SyncParams.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 27 | "android_mtp_MtpDatabase.cpp", |
| 28 | "android_mtp_MtpDevice.cpp", |
| 29 | "android_mtp_MtpServer.cpp", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 30 | "JetPlayer.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 31 | ], |
| 32 | |
| 33 | shared_libs: [ |
Ytai Ben-Tsvi | f12e518 | 2020-10-26 13:27:45 -0700 | [diff] [blame] | 34 | "audioclient-types-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 203e4e6 | 2020-10-29 11:19:10 -0700 | [diff] [blame] | 35 | "av-types-aidl-unstable-cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 36 | "libandroid_runtime", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 37 | "libaudioclient", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 38 | "libnativehelper", |
Mathias Agopian | 3e88ed8 | 2018-02-20 18:32:22 -0800 | [diff] [blame] | 39 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 40 | "libutils", |
| 41 | "libbinder", |
| 42 | "libmedia", |
Dongwon Kang | cc73dda | 2019-09-23 17:42:00 -0700 | [diff] [blame] | 43 | "libmedia_codeclist", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 44 | "libmedia_jni_utils", |
Jae Shin | a0f51ba | 2017-10-30 14:50:52 +0900 | [diff] [blame] | 45 | "libmedia_omx", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 46 | "libmediametrics", |
| 47 | "libmediadrm", |
Robert Shih | ba6777e | 2019-11-12 13:04:59 -0800 | [diff] [blame] | 48 | "libmediadrmmetrics_consumer", |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 49 | "libhwui", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 50 | "libui", |
| 51 | "liblog", |
| 52 | "libcutils", |
| 53 | "libgui", |
| 54 | "libstagefright", |
| 55 | "libstagefright_foundation", |
| 56 | "libcamera_client", |
| 57 | "libmtp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 58 | "libpiex", |
Suren Baghdasaryan | 3fc4af6 | 2018-12-14 10:32:22 -0800 | [diff] [blame] | 59 | "libprocessgroup", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 60 | "libandroidfw", |
Chong Zhang | f98fc1c | 2018-02-13 17:55:34 -0800 | [diff] [blame] | 61 | "libhidlallocatorutils", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 62 | "libhidlbase", |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 63 | "libsonivox", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 64 | "android.hardware.cas@1.0", |
| 65 | "android.hardware.cas.native@1.0", |
Robert Shih | d2e8b43 | 2019-11-21 20:27:56 -0800 | [diff] [blame] | 66 | "android.hardware.drm@1.3", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 67 | "android.hidl.memory@1.0", |
| 68 | "android.hidl.token@1.0-utils", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 69 | ], |
| 70 | |
Marco Nelissen | a2eedd5d | 2019-09-27 11:19:36 -0700 | [diff] [blame] | 71 | header_libs: [ |
| 72 | "libhardware_headers", |
| 73 | "libmediadrm_headers", |
| 74 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 75 | |
Marco Nelissen | 5ff1173 | 2019-10-17 08:55:52 -0700 | [diff] [blame] | 76 | static_libs: [ |
| 77 | "libgrallocusage", |
| 78 | "libmedia_midiiowrapper", |
| 79 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 80 | |
| 81 | include_dirs: [ |
| 82 | "frameworks/base/core/jni", |
| 83 | "frameworks/native/include/media/openmax", |
| 84 | "system/media/camera/include", |
| 85 | ], |
| 86 | |
| 87 | export_include_dirs: ["."], |
| 88 | |
| 89 | export_shared_lib_headers: [ |
| 90 | "libpiex", |
| 91 | ], |
| 92 | |
| 93 | cflags: [ |
| 94 | "-Wall", |
| 95 | "-Werror", |
| 96 | "-Wno-error=deprecated-declarations", |
| 97 | "-Wunused", |
| 98 | "-Wunreachable-code", |
| 99 | ], |
Yi Kong | cd1e70b | 2020-09-22 01:06:32 +0800 | [diff] [blame] | 100 | |
| 101 | // Workaround Clang LTO crash. |
| 102 | lto: { |
| 103 | never: true, |
| 104 | }, |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 105 | } |
| 106 | |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 107 | cc_library_shared { |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 108 | name: "libmedia_jni_utils", |
| 109 | srcs: [ |
| 110 | "android_media_Utils.cpp", |
| 111 | ], |
| 112 | |
Marco Nelissen | e83368f | 2019-10-30 07:43:49 -0700 | [diff] [blame] | 113 | header_libs: [ |
| 114 | "libgui_headers", |
| 115 | ], |
| 116 | |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 117 | shared_libs: [ |
| 118 | "liblog", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 119 | "libui", |
| 120 | "libutils", |
Jooyung Han | cb1e896 | 2019-02-21 14:18:11 +0900 | [diff] [blame] | 121 | ], |
| 122 | |
| 123 | include_dirs: [ |
| 124 | "system/media/camera/include", |
| 125 | ], |
| 126 | |
| 127 | export_include_dirs: ["."], |
| 128 | |
| 129 | cflags: [ |
| 130 | "-Wall", |
| 131 | "-Werror", |
| 132 | "-Wno-error=deprecated-declarations", |
| 133 | "-Wunused", |
| 134 | "-Wunreachable-code", |
| 135 | ], |
| 136 | } |
| 137 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 138 | cc_library_shared { |
| 139 | name: "libmedia_tv_tuner", |
| 140 | srcs: [ |
| 141 | "android_media_tv_Tuner.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 142 | "tuner/DemuxClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame^] | 143 | "tuner/DescramblerClient.cpp", |
Amy Zhang | 9a9ed60 | 2020-12-07 16:37:33 -0800 | [diff] [blame] | 144 | "tuner/DvrClient.cpp", |
Amy Zhang | 6bfeaa0 | 2020-11-30 15:16:39 -0800 | [diff] [blame] | 145 | "tuner/FilterClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 146 | "tuner/FrontendClient.cpp", |
Amy Zhang | b0f63ab | 2021-01-06 17:19:27 -0800 | [diff] [blame^] | 147 | "tuner/LnbClient.cpp", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 148 | "tuner/TunerClient.cpp", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 149 | ], |
| 150 | |
| 151 | shared_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 152 | "android.hardware.graphics.bufferqueue@2.0", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 153 | "android.hardware.tv.tuner@1.0", |
Amy Zhang | b13e304 | 2020-07-27 14:50:10 -0700 | [diff] [blame] | 154 | "android.hardware.tv.tuner@1.1", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 155 | "libbinder_ndk", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 156 | "libandroid_runtime", |
shubang | 964e613 | 2019-11-26 15:05:22 -0800 | [diff] [blame] | 157 | "libcutils", |
| 158 | "libfmq", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 159 | "libhidlbase", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 160 | "liblog", |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 161 | "libmedia", |
shubang | ba21a7f | 2019-12-05 16:58:55 -0800 | [diff] [blame] | 162 | "libnativehelper", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 163 | "libutils", |
Amy Zhang | bf68a16 | 2020-11-23 17:42:40 -0800 | [diff] [blame] | 164 | "tv_tuner_aidl_interface-ndk_platform", |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 165 | ], |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 166 | defaults: [ |
| 167 | "libcodec2-impl-defaults", |
| 168 | ], |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 169 | |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 170 | header_libs: [ |
shubang | d49681e | 2020-02-17 21:32:30 -0800 | [diff] [blame] | 171 | "libcodec2_internal", |
Marco Nelissen | c539153 | 2020-01-08 12:14:31 -0800 | [diff] [blame] | 172 | "libstagefright_foundation_headers", |
| 173 | ], |
| 174 | |
shubang | 8ab43b1 | 2019-10-18 15:55:55 -0700 | [diff] [blame] | 175 | export_include_dirs: ["."], |
| 176 | |
| 177 | cflags: [ |
| 178 | "-Wall", |
| 179 | "-Werror", |
| 180 | "-Wno-error=deprecated-declarations", |
| 181 | "-Wunused", |
| 182 | "-Wunreachable-code", |
| 183 | ], |
| 184 | } |
hkuang | b942b53 | 2020-04-23 09:56:10 -0700 | [diff] [blame] | 185 | |