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", |
| 34 | "libutils", |
| 35 | "libbinder", |
| 36 | "libmedia", |
Marco Nelissen | 4045a06 | 2018-01-29 11:29:09 -0800 | [diff] [blame^] | 37 | "libmediaextractor", |
Jae Shin | a0f51ba | 2017-10-30 14:50:52 +0900 | [diff] [blame] | 38 | "libmedia_omx", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 39 | "libmediametrics", |
| 40 | "libmediadrm", |
| 41 | "libmidi", |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 42 | "libhwui", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 43 | "libui", |
| 44 | "liblog", |
| 45 | "libcutils", |
| 46 | "libgui", |
| 47 | "libstagefright", |
| 48 | "libstagefright_foundation", |
| 49 | "libcamera_client", |
| 50 | "libmtp", |
| 51 | "libexif", |
| 52 | "libpiex", |
| 53 | "libandroidfw", |
Chong Zhang | 2659c2f | 2017-04-27 13:18:20 -0700 | [diff] [blame] | 54 | "libhidlbase", |
| 55 | "libhidltransport", |
| 56 | "android.hardware.cas@1.0", |
| 57 | "android.hardware.cas.native@1.0", |
| 58 | "android.hidl.memory@1.0", |
| 59 | "android.hidl.token@1.0-utils", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 60 | ], |
| 61 | |
| 62 | header_libs: ["libhardware_headers"], |
| 63 | |
| 64 | static_libs: ["libgrallocusage"], |
| 65 | |
| 66 | include_dirs: [ |
| 67 | "frameworks/base/core/jni", |
| 68 | "frameworks/native/include/media/openmax", |
| 69 | "system/media/camera/include", |
| 70 | ], |
| 71 | |
| 72 | export_include_dirs: ["."], |
| 73 | |
| 74 | export_shared_lib_headers: [ |
| 75 | "libpiex", |
| 76 | ], |
| 77 | |
| 78 | cflags: [ |
| 79 | "-Wall", |
| 80 | "-Werror", |
| 81 | "-Wno-error=deprecated-declarations", |
| 82 | "-Wunused", |
| 83 | "-Wunreachable-code", |
| 84 | ], |
| 85 | } |
| 86 | |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 87 | cc_library_shared { |
| 88 | name: "libmedia2_jni", |
| 89 | |
| 90 | srcs: [ |
| 91 | "android_media_Media2HTTPConnection.cpp", |
| 92 | "android_media_Media2HTTPService.cpp", |
| 93 | "android_media_MediaCrypto.cpp", |
| 94 | "android_media_Media2DataSource.cpp", |
| 95 | "android_media_MediaDrm.cpp", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 96 | "android_media_MediaPlayer2.cpp", |
| 97 | "android_media_SyncParams.cpp", |
| 98 | ], |
| 99 | |
| 100 | shared_libs: [ |
| 101 | "android.hardware.cas@1.0", // for CasManager. VNDK??? |
| 102 | "android.hardware.cas.native@1.0", // CasManager. VNDK??? |
| 103 | "libandroid", // NDK |
| 104 | "libandroid_runtime", // ??? |
| 105 | "libaudioclient", // for use of AudioTrack, AudioSystem. to be removed |
| 106 | "liblog", // NDK |
| 107 | "libdrmframework", // for FileSource, MediaHTTP |
| 108 | "libgui", // for VideoFrameScheduler |
| 109 | "libhidlbase", // VNDK??? |
| 110 | "libmediandk", // NDK |
| 111 | "libpowermanager", // for JWakeLock. to be removed |
Wei Jia | 04a6e93 | 2018-01-25 10:13:42 -0800 | [diff] [blame] | 112 | |
| 113 | "libutils", // Have to use shared lib to make libandroid_runtime behave correctly. |
| 114 | // Otherwise, AndroidRuntime::getJNIEnv() will return NULL. |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 115 | ], |
| 116 | |
| 117 | header_libs: ["libhardware_headers"], |
| 118 | |
| 119 | static_libs: [ |
| 120 | "libbacktrace", |
| 121 | "libbase", |
| 122 | "libbinder", |
| 123 | "libc_malloc_debug_backtrace", |
| 124 | "libcrypto", |
| 125 | "libcutils", |
| 126 | "libdexfile", |
| 127 | "liblzma", |
| 128 | "libmedia", |
| 129 | "libmedia_helper", |
| 130 | "libmedia_player2", |
| 131 | "libmedia_player2_util", |
| 132 | "libmediadrm", |
| 133 | "libmediaextractor", |
| 134 | "libmediametrics", |
| 135 | "libmediautils", |
| 136 | "libnativehelper", |
| 137 | "libnetd_client", |
| 138 | "libstagefright_esds", |
| 139 | "libstagefright_foundation", |
| 140 | "libstagefright_httplive", |
| 141 | "libstagefright_id3", |
| 142 | "libstagefright_mpeg2support", |
| 143 | "libstagefright_nuplayer2", |
| 144 | "libstagefright_player2", |
| 145 | "libstagefright_rtsp", |
| 146 | "libstagefright_timedtext", |
| 147 | "libunwindstack", |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 148 | "libutilscallstack", |
| 149 | "libvndksupport", |
| 150 | "libz", |
| 151 | "libziparchive", |
| 152 | ], |
| 153 | |
| 154 | group_static_libs: true, |
| 155 | |
| 156 | include_dirs: [ |
| 157 | "frameworks/base/core/jni", |
| 158 | "frameworks/native/include/media/openmax", |
| 159 | "system/media/camera/include", |
| 160 | ], |
| 161 | |
| 162 | export_include_dirs: ["."], |
| 163 | |
| 164 | cflags: [ |
| 165 | "-Wall", |
| 166 | "-Werror", |
| 167 | "-Wno-error=deprecated-declarations", |
| 168 | "-Wunused", |
| 169 | "-Wunreachable-code", |
| 170 | ], |
| 171 | |
| 172 | ldflags: ["-Wl,--exclude-libs=ALL"], |
| 173 | } |
| 174 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 175 | subdirs = [ |
| 176 | "audioeffect", |
Colin Cross | 98c127f | 2017-05-16 13:08:19 -0700 | [diff] [blame] | 177 | "soundpool", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 178 | ] |