Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libmediaplayer2_headers", |
| 3 | vendor_available: true, |
| 4 | export_include_dirs: ["include"], |
| 5 | } |
| 6 | |
| 7 | cc_library { |
| 8 | name: "libmediaplayer2", |
| 9 | |
| 10 | srcs: [ |
| 11 | "JAudioTrack.cpp", |
Dongwon Kang | 8144aee | 2018-06-28 17:40:03 -0700 | [diff] [blame] | 12 | "JavaVMHelper.cpp", |
Wei Jia | ec044b0 | 2018-02-19 12:41:23 -0800 | [diff] [blame] | 13 | "MediaPlayer2AudioOutput.cpp", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 14 | "mediaplayer2.cpp", |
| 15 | ], |
| 16 | |
| 17 | shared_libs: [ |
| 18 | "libandroid_runtime", |
| 19 | "libaudioclient", |
| 20 | "libbinder", |
| 21 | "libcutils", |
| 22 | "libgui", |
| 23 | "liblog", |
| 24 | "libmedia_omx", |
| 25 | "libmedia_player2_util", |
| 26 | "libmediaextractor", |
| 27 | "libstagefright_foundation", |
| 28 | "libui", |
| 29 | "libutils", |
| 30 | |
| 31 | "libcrypto", |
| 32 | "libmediadrm", |
| 33 | "libmediametrics", |
| 34 | "libmediandk", |
| 35 | "libmediautils", |
| 36 | "libmemunreachable", |
| 37 | "libnativewindow", |
| 38 | "libpowermanager", |
| 39 | "libstagefright_httplive", |
| 40 | "libstagefright_player2", |
| 41 | ], |
| 42 | |
| 43 | export_shared_lib_headers: [ |
| 44 | "libaudioclient", |
| 45 | "libbinder", |
| 46 | "libmedia_omx", |
| 47 | ], |
| 48 | |
| 49 | header_libs: [ |
| 50 | "media_plugin_headers", |
| 51 | ], |
| 52 | |
Dongwon Kang | 8144aee | 2018-06-28 17:40:03 -0700 | [diff] [blame] | 53 | include_dirs: [ |
| 54 | "frameworks/base/core/jni", |
| 55 | ], |
| 56 | |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 57 | static_libs: [ |
| 58 | "libmedia_helper", |
Dongwon Kang | 9f63198 | 2018-07-10 12:34:41 -0700 | [diff] [blame^] | 59 | "libmediaplayer2-protos", |
| 60 | "libprotobuf-cpp-lite", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 61 | "libstagefright_nuplayer2", |
| 62 | "libstagefright_rtsp", |
| 63 | "libstagefright_timedtext", |
| 64 | ], |
| 65 | |
| 66 | export_include_dirs: [ |
| 67 | "include", |
| 68 | ], |
| 69 | |
| 70 | cflags: [ |
| 71 | "-Werror", |
| 72 | "-Wno-error=deprecated-declarations", |
| 73 | "-Wall", |
| 74 | ], |
| 75 | |
| 76 | sanitize: { |
| 77 | misc_undefined: [ |
| 78 | "unsigned-integer-overflow", |
| 79 | "signed-integer-overflow", |
| 80 | ], |
| 81 | cfi: true, |
| 82 | diag: { |
| 83 | cfi: true, |
| 84 | }, |
| 85 | }, |
| 86 | } |