Marco Nelissen | fa8be7d | 2019-09-23 12:15:57 -0700 | [diff] [blame^] | 1 | cc_library { |
| 2 | name: "libdatasource", |
| 3 | |
| 4 | srcs: [ |
| 5 | "ClearFileSource.cpp", |
| 6 | "ClearMediaHTTP.cpp", |
| 7 | "DataSourceFactory.cpp", |
| 8 | "DataURISource.cpp", |
| 9 | "FileSource.cpp", |
| 10 | "HTTPBase.cpp", |
| 11 | "MediaHTTP.cpp", |
| 12 | "NuCachedSource2.cpp", |
| 13 | ], |
| 14 | |
| 15 | aidl: { |
| 16 | local_include_dirs: ["aidl"], |
| 17 | export_aidl_headers: true, |
| 18 | }, |
| 19 | |
| 20 | header_libs: [ |
| 21 | "libstagefright_headers", |
| 22 | "media_ndk_headers", |
| 23 | "libmedia_headers", |
| 24 | ], |
| 25 | |
| 26 | export_header_lib_headers: [ |
| 27 | "libstagefright_headers", |
| 28 | "media_ndk_headers", |
| 29 | ], |
| 30 | |
| 31 | shared_libs: [ |
| 32 | "liblog", |
| 33 | "libcutils", |
| 34 | "libdrmframework", |
| 35 | "libutils", |
| 36 | "libstagefright_foundation", |
| 37 | "libdl", |
| 38 | ], |
| 39 | |
| 40 | static_libs: [ |
| 41 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 42 | "libmedia_midiiowrapper", |
| 43 | ], |
| 44 | |
| 45 | local_include_dirs: [ |
| 46 | "include", |
| 47 | ], |
| 48 | |
| 49 | export_include_dirs: [ |
| 50 | "include", |
| 51 | ], |
| 52 | |
| 53 | cflags: [ |
| 54 | "-Werror", |
| 55 | "-Wno-error=deprecated-declarations", |
| 56 | "-Wall", |
| 57 | ], |
| 58 | |
| 59 | sanitize: { |
| 60 | misc_undefined: [ |
| 61 | "unsigned-integer-overflow", |
| 62 | "signed-integer-overflow", |
| 63 | ], |
| 64 | cfi: true, |
| 65 | }, |
| 66 | } |