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", 12 "MediaPlayer2AudioOutput.cpp", 13 "mediaplayer2.cpp", 14 ], 15 16 shared_libs: [ 17 "libandroid_runtime", 18 "libaudioclient", 19 "libbinder", 20 "libcutils", 21 "libgui", 22 "liblog", 23 "libmedia_omx", 24 "libmedia_player2_util", 25 "libmediaextractor", 26 "libstagefright_foundation", 27 "libui", 28 "libutils", 29 30 "libcrypto", 31 "libmediadrm", 32 "libmediametrics", 33 "libmediandk", 34 "libmediautils", 35 "libmemunreachable", 36 "libnativewindow", 37 "libpowermanager", 38 "libstagefright_httplive", 39 "libstagefright_player2", 40 ], 41 42 export_shared_lib_headers: [ 43 "libaudioclient", 44 "libbinder", 45 "libmedia_omx", 46 ], 47 48 header_libs: [ 49 "media_plugin_headers", 50 ], 51 52 static_libs: [ 53 "libmedia_helper", 54 "libstagefright_nuplayer2", 55 "libstagefright_rtsp", 56 "libstagefright_timedtext", 57 ], 58 59 export_include_dirs: [ 60 "include", 61 ], 62 63 cflags: [ 64 "-Werror", 65 "-Wno-error=deprecated-declarations", 66 "-Wall", 67 ], 68 69 sanitize: { 70 misc_undefined: [ 71 "unsigned-integer-overflow", 72 "signed-integer-overflow", 73 ], 74 cfi: true, 75 diag: { 76 cfi: true, 77 }, 78 }, 79 } 80