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 | |
Marco Nelissen | 2a3363a | 2018-09-13 13:15:30 -0700 | [diff] [blame] | 7 | cc_library_static { |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 8 | name: "libmediaplayer2", |
| 9 | |
| 10 | srcs: [ |
Wei Jia | ec044b0 | 2018-02-19 12:41:23 -0800 | [diff] [blame] | 11 | "MediaPlayer2AudioOutput.cpp", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 12 | "mediaplayer2.cpp", |
| 13 | ], |
| 14 | |
| 15 | shared_libs: [ |
| 16 | "libandroid_runtime", |
| 17 | "libaudioclient", |
| 18 | "libbinder", |
| 19 | "libcutils", |
| 20 | "libgui", |
| 21 | "liblog", |
| 22 | "libmedia_omx", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 23 | "libmediaextractor", |
| 24 | "libstagefright_foundation", |
| 25 | "libui", |
| 26 | "libutils", |
| 27 | |
| 28 | "libcrypto", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 29 | "libmediametrics", |
| 30 | "libmediandk", |
Robert Shih | 49fb89d | 2018-01-31 17:53:19 -0800 | [diff] [blame] | 31 | "libmediandk_utils", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 32 | "libmediautils", |
| 33 | "libmemunreachable", |
| 34 | "libnativewindow", |
| 35 | "libpowermanager", |
| 36 | "libstagefright_httplive", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 37 | ], |
| 38 | |
| 39 | export_shared_lib_headers: [ |
| 40 | "libaudioclient", |
| 41 | "libbinder", |
| 42 | "libmedia_omx", |
| 43 | ], |
| 44 | |
| 45 | header_libs: [ |
| 46 | "media_plugin_headers", |
| 47 | ], |
| 48 | |
Dongwon Kang | 8144aee | 2018-06-28 17:40:03 -0700 | [diff] [blame] | 49 | include_dirs: [ |
| 50 | "frameworks/base/core/jni", |
| 51 | ], |
| 52 | |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 53 | static_libs: [ |
| 54 | "libmedia_helper", |
Dongwon Kang | 9f63198 | 2018-07-10 12:34:41 -0700 | [diff] [blame] | 55 | "libmediaplayer2-protos", |
Marco Nelissen | 2a3363a | 2018-09-13 13:15:30 -0700 | [diff] [blame] | 56 | "libmedia_player2_util", |
Dongwon Kang | 9f63198 | 2018-07-10 12:34:41 -0700 | [diff] [blame] | 57 | "libprotobuf-cpp-lite", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 58 | "libstagefright_nuplayer2", |
Marco Nelissen | 2a3363a | 2018-09-13 13:15:30 -0700 | [diff] [blame] | 59 | "libstagefright_player2", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 60 | "libstagefright_rtsp", |
Dongwon Kang | a0e816a | 2018-09-10 19:46:49 -0700 | [diff] [blame] | 61 | "libstagefright_timedtext2", |
Dichen Zhang | f872691 | 2018-10-17 13:31:26 -0700 | [diff] [blame] | 62 | "libmedia2_jni_core", |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 63 | ], |
| 64 | |
| 65 | export_include_dirs: [ |
| 66 | "include", |
| 67 | ], |
| 68 | |
| 69 | cflags: [ |
| 70 | "-Werror", |
| 71 | "-Wno-error=deprecated-declarations", |
| 72 | "-Wall", |
| 73 | ], |
| 74 | |
| 75 | sanitize: { |
| 76 | misc_undefined: [ |
| 77 | "unsigned-integer-overflow", |
| 78 | "signed-integer-overflow", |
| 79 | ], |
| 80 | cfi: true, |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 81 | }, |
| 82 | } |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 83 | |
| 84 | cc_library { |
| 85 | name: "libmedia2_jni_core", |
| 86 | |
| 87 | srcs: [ |
| 88 | "JavaVMHelper.cpp", |
| 89 | "JAudioTrack.cpp", |
| 90 | "JMedia2HTTPService.cpp", |
| 91 | "JMedia2HTTPConnection.cpp", |
| 92 | ], |
| 93 | |
Marco Nelissen | 2ba48f8 | 2018-12-21 10:36:15 -0800 | [diff] [blame^] | 94 | header_libs: [ |
| 95 | "libbinder_headers", |
| 96 | "libnativehelper_header_only", |
| 97 | ], |
| 98 | |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 99 | shared_libs: [ |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 100 | "liblog", |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 101 | "libutils", |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 102 | "libdl", |
Robert Shih | 2501816 | 2018-09-13 22:07:34 -0700 | [diff] [blame] | 103 | ], |
| 104 | |
| 105 | include_dirs: [ |
| 106 | "frameworks/av/media/libmedia/include", |
| 107 | "frameworks/base/core/jni", |
| 108 | ], |
| 109 | |
| 110 | export_include_dirs: [ |
| 111 | "include", |
| 112 | ], |
| 113 | |
| 114 | cflags: [ |
| 115 | "-Werror", |
| 116 | "-Wno-error=deprecated-declarations", |
| 117 | "-Wall", |
| 118 | ], |
| 119 | |
| 120 | sanitize: { |
| 121 | misc_undefined: [ |
| 122 | "unsigned-integer-overflow", |
| 123 | "signed-integer-overflow", |
| 124 | ], |
| 125 | cfi: true, |
| 126 | diag: { |
| 127 | cfi: true, |
| 128 | }, |
| 129 | }, |
| 130 | |
| 131 | } |