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: [ |
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", |
| 23 | "libmedia_player2_util", |
| 24 | "libmediaextractor", |
| 25 | "libstagefright_foundation", |
| 26 | "libui", |
| 27 | "libutils", |
| 28 | |
| 29 | "libcrypto", |
| 30 | "libmediadrm", |
| 31 | "libmediametrics", |
| 32 | "libmediandk", |
| 33 | "libmediautils", |
| 34 | "libmemunreachable", |
| 35 | "libnativewindow", |
| 36 | "libpowermanager", |
| 37 | "libstagefright_httplive", |
| 38 | "libstagefright_player2", |
| 39 | ], |
| 40 | |
| 41 | export_shared_lib_headers: [ |
| 42 | "libaudioclient", |
| 43 | "libbinder", |
| 44 | "libmedia_omx", |
| 45 | ], |
| 46 | |
| 47 | header_libs: [ |
| 48 | "media_plugin_headers", |
| 49 | ], |
| 50 | |
Dongwon Kang | 8144aee | 2018-06-28 17:40:03 -0700 | [diff] [blame] | 51 | include_dirs: [ |
| 52 | "frameworks/base/core/jni", |
| 53 | ], |
| 54 | |
Wei Jia | 51b6956 | 2018-02-05 16:17:13 -0800 | [diff] [blame] | 55 | static_libs: [ |
| 56 | "libmedia_helper", |
| 57 | "libstagefright_nuplayer2", |
| 58 | "libstagefright_rtsp", |
| 59 | "libstagefright_timedtext", |
| 60 | ], |
| 61 | |
| 62 | export_include_dirs: [ |
| 63 | "include", |
| 64 | ], |
| 65 | |
| 66 | cflags: [ |
| 67 | "-Werror", |
| 68 | "-Wno-error=deprecated-declarations", |
| 69 | "-Wall", |
| 70 | ], |
| 71 | |
| 72 | sanitize: { |
| 73 | misc_undefined: [ |
| 74 | "unsigned-integer-overflow", |
| 75 | "signed-integer-overflow", |
| 76 | ], |
| 77 | cfi: true, |
| 78 | diag: { |
| 79 | cfi: true, |
| 80 | }, |
| 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 | |
| 94 | shared_libs: [ |
| 95 | "android.hidl.token@1.0-utils", |
| 96 | "liblog", |
| 97 | "libcutils", |
| 98 | "libutils", |
| 99 | "libbinder", |
| 100 | "libstagefright_foundation", |
| 101 | "libmediaextractor", |
| 102 | "libdl", |
| 103 | "libaudioutils", |
| 104 | "libaudioclient", |
| 105 | "libnativehelper", |
| 106 | ], |
| 107 | |
| 108 | include_dirs: [ |
| 109 | "frameworks/av/media/libmedia/include", |
| 110 | "frameworks/base/core/jni", |
| 111 | ], |
| 112 | |
| 113 | export_include_dirs: [ |
| 114 | "include", |
| 115 | ], |
| 116 | |
| 117 | cflags: [ |
| 118 | "-Werror", |
| 119 | "-Wno-error=deprecated-declarations", |
| 120 | "-Wall", |
| 121 | ], |
| 122 | |
| 123 | sanitize: { |
| 124 | misc_undefined: [ |
| 125 | "unsigned-integer-overflow", |
| 126 | "signed-integer-overflow", |
| 127 | ], |
| 128 | cfi: true, |
| 129 | diag: { |
| 130 | cfi: true, |
| 131 | }, |
| 132 | }, |
| 133 | |
| 134 | } |