1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10cc_library_headers { 11 name: "libmediametrics_headers", 12 export_include_dirs: ["include"], 13} 14 15cc_library { 16 name: "libmediametrics", 17 18 srcs: [ 19 "MediaMetricsItem.cpp", 20 "MediaMetrics.cpp", 21 ], 22 23 shared_libs: [ 24 "libbinder", 25 "libcutils", 26 "liblog", 27 "libutils", 28 "mediametricsservice-aidl-cpp", 29 ], 30 31 export_include_dirs: ["include"], 32 33 cflags: [ 34 "-Wall", 35 "-Werror", 36 "-Wextra", 37 "-Wthread-safety", 38 "-Wunreachable-code", 39 ], 40 41 sanitize: { 42 misc_undefined: [ 43 "unsigned-integer-overflow", 44 "signed-integer-overflow", 45 ], 46 cfi: true, 47 }, 48 49 // enumerate stable entry points, for apex use 50 stubs: { 51 symbol_file: "libmediametrics.map.txt", 52 versions: [ 53 "1" , 54 ] 55 }, 56 57 header_abi_checker: { 58 enabled: true, 59 symbol_file: "libmediametrics.map.txt", 60 }, 61 62 visibility: [ 63 "//cts/tests/tests/nativemedia/mediametrics", 64 "//frameworks/av:__subpackages__", 65 "//frameworks/base/apex/media/framework", 66 "//frameworks/base/core/jni", 67 "//frameworks/base/media/jni", 68 ], 69} 70 71aidl_interface { 72 name: "mediametricsservice-aidl", 73 unstable: true, 74 local_include_dir: "aidl", 75 vendor_available: true, 76 srcs: [ 77 "aidl/android/media/IMediaMetricsService.aidl", 78 ], 79 double_loadable: true, 80 backend: { 81 cpp: { 82 apex_available: [ 83 "//apex_available:platform", 84 ], 85 }, 86 }, 87} 88