blob: fcd7ac5b8ddb83371b87f7ad8afebdb7128ef8e0 [file]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
default_team: "trendy_team_android_telemetry_client_infra",
}
vintf_fragment {
name: "android.frameworks.stats-service.xml",
src: "android.frameworks.stats-service.xml",
}
cc_defaults {
name: "statsaidl_defaults",
cflags: [
"-Wall",
"-Werror",
],
srcs: [
"PullCallbackRegistry.cpp",
"PullResultReceiver.cpp",
"StatsAidl.cpp",
"Utils.cpp",
],
shared_libs: [
"android.frameworks.stats-V3-ndk",
"libaconfig_storage_read_api_cc",
"libandroid",
"libbase",
"libbinder_ndk",
"libexpresslog",
"liblog",
"libstatspull",
"libstatssocket",
"libutils",
],
static_libs: [
"stats_hal_flags_lib_cc",
],
local_include_dirs: [
"include/stats",
],
}
cc_library_shared {
name: "libstatshidl",
defaults: ["statsaidl_defaults"],
export_include_dirs: [
"include/",
],
export_shared_lib_headers: [
"android.frameworks.stats-V3-ndk",
],
vintf_fragment_modules: [
"android.frameworks.stats-service.xml",
],
}
cc_test {
name: "libstatshidl_test",
defaults: ["statsaidl_defaults"],
test_suites: [
"general-tests",
],
srcs: [
"StatsAidlTest.cpp",
],
static_libs: [
"libgmock",
"libgtest",
],
test_options: {
unit_test: true,
},
}