platform_system_core/libmetricslogger/Android.bp
Jayant Chowdhary 7f96d49370 Mark libmetricslogger vendor_available.
libmetricslogger is a library which belongs to vndk-cap. Mark it
vendor_available to enable vndk abi stability checks on it.

Details: https://android-review.googlesource.com/368372

Test: mm -j64

Bug: 38244611

Change-Id: If4bb63d3769317bc7cfc0f2f326e8bdd7b565ebe
2017-05-24 14:13:51 -07:00

66 lines
1.6 KiB
Text

// Copyright 2017 The Android Open Source Project
metricslogger_lib_src_files = [
"metrics_logger.cpp",
]
cc_defaults {
name: "metricslogger_defaults",
clang: true,
host_supported: true,
export_include_dirs: ["include"],
local_include_dirs: ["include"],
shared_libs: ["liblog"],
whole_static_libs: ["libgtest_prod"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
// 524291 corresponds to sysui_histogram, from
// frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags
"-DHISTOGRAM_LOG_TAG=524292",
"-DCOUNT_LOG_TAG=524290",
],
}
// metricslogger shared library
// -----------------------------------------------------------------------------
cc_library_shared {
name: "libmetricslogger",
vendor_available: true,
srcs: metricslogger_lib_src_files,
defaults: ["metricslogger_defaults"],
}
// metricslogger shared library, debug
// -----------------------------------------------------------------------------
cc_library_shared {
name: "libmetricslogger_debug",
srcs: metricslogger_lib_src_files,
defaults: ["metricslogger_defaults"],
target: {
host: {
cflags: ["-UNDEBUG"],
},
},
}
// Native tests
// -----------------------------------------------------------------------------
cc_test {
name: "metricslogger_tests",
defaults: ["metricslogger_defaults"],
shared_libs: [
"libbase",
"libmetricslogger_debug",
],
static_libs: ["libBionicGtestMain"],
srcs: [
"metrics_logger_test.cpp",
],
}