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