Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 1 | cc_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 Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 15 | "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 Agopian | 3e88ed8 | 2018-02-20 18:32:22 -0800 | [diff] [blame] | 34 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 35 | "libutils", |
| 36 | "libbinder", |
| 37 | "libmedia", |
Marco Nelissen | 4045a06 | 2018-01-29 11:29:09 -0800 | [diff] [blame] | 38 | "libmediaextractor", |
Jae Shin | a0f51ba | 2017-10-30 14:50:52 +0900 | [diff] [blame] | 39 | "libmedia_omx", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 40 | "libmediametrics", |
| 41 | "libmediadrm", |
| 42 | "libmidi", |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 43 | "libhwui", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 44 | "libui", |
| 45 | "liblog", |
| 46 | "libcutils", |
| 47 | "libgui", |
| 48 | "libstagefright", |
| 49 | "libstagefright_foundation", |
| 50 | "libcamera_client", |
| 51 | "libmtp", |
| 52 | "libexif", |
| 53 | "libpiex", |
| 54 | "libandroidfw", |
Chong Zhang | f98fc1c | 2018-02-13 17:55:34 -0800 | [diff] [blame] | 55 | "libhidlallocatorutils", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 56 | "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 Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 62 | ], |
| 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 Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 89 | cc_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 Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 98 | "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 Zhang | f98fc1c | 2018-02-13 17:55:34 -0800 | [diff] [blame] | 111 | "libhidlallocatorutils", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 112 | "libhidlbase", // VNDK??? |
| 113 | "libmediandk", // NDK |
| 114 | "libpowermanager", // for JWakeLock. to be removed |
Wei Jia | 04a6e93 | 2018-01-25 10:13:42 -0800 | [diff] [blame] | 115 | |
| 116 | "libutils", // Have to use shared lib to make libandroid_runtime behave correctly. |
| 117 | // Otherwise, AndroidRuntime::getJNIEnv() will return NULL. |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 118 | ], |
| 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 Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 131 | "libmedia_helper", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 132 | "libmedia_player2_util", |
| 133 | "libmediadrm", |
| 134 | "libmediaextractor", |
| 135 | "libmediametrics", |
Wei Jia | c3c31a53 | 2018-02-05 16:18:27 -0800 | [diff] [blame] | 136 | "libmediaplayer2", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 137 | "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 Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 150 | "libutilscallstack", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 151 | "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 Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 176 | subdirs = [ |
| 177 | "audioeffect", |
Colin Cross | 98c127f | 2017-05-16 13:08:19 -0700 | [diff] [blame] | 178 | "soundpool", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 179 | ] |