Wei Jia | 4049f13 | 2018-01-22 10:37:31 -0800 | [diff] [blame] | 1 | // TODO: change it back to cc_library_shared when there is a way to |
| 2 | // expose media metrics as stable API. |
| 3 | cc_library { |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 4 | name: "libmediametrics", |
| 5 | |
| 6 | srcs: [ |
| 7 | "IMediaAnalyticsService.cpp", |
| 8 | "MediaAnalyticsItem.cpp", |
Ray Essick | 2014732 | 2018-11-17 09:08:39 -0800 | [diff] [blame] | 9 | "MediaMetrics.cpp", |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 10 | ], |
| 11 | |
| 12 | shared_libs: [ |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 13 | "libbase", |
Ray Essick | 2014732 | 2018-11-17 09:08:39 -0800 | [diff] [blame] | 14 | "libbinder", |
| 15 | "libcutils", |
| 16 | "liblog", |
| 17 | "libstagefright_foundation", |
| 18 | "libutils", |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 19 | ], |
| 20 | |
| 21 | export_include_dirs: ["include"], |
| 22 | |
| 23 | cflags: [ |
| 24 | "-Werror", |
| 25 | "-Wno-error=deprecated-declarations", |
| 26 | "-Wall", |
| 27 | ], |
| 28 | |
| 29 | sanitize: { |
| 30 | misc_undefined: [ |
| 31 | "unsigned-integer-overflow", |
| 32 | "signed-integer-overflow", |
| 33 | ], |
| 34 | cfi: true, |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 35 | }, |
Ray Essick | 2014732 | 2018-11-17 09:08:39 -0800 | [diff] [blame] | 36 | |
| 37 | // enumerate the stable interface |
| 38 | // this would mean nobody can use the C++ interface. have to rework some things. |
| 39 | // stubs: { |
| 40 | // symbol_file: "libmediametrics.map.txt", |
| 41 | // versions: [ |
| 42 | // "1" , |
| 43 | // ] |
| 44 | // }, |
Colin Cross | ed56be2 | 2017-04-27 14:07:39 -0700 | [diff] [blame] | 45 | } |