platform_system_core/libmetricslogger/Android.bp
Mathew Inwood 07787e6059 Add support for logging complex events from C++.
Also include relevant new metric_logger.proto values.

Test: m
Test: Exercised by ag/3890335 in art
Bug: 77517571
Merged-In: Ia527f2b94c7a6147ad9d537376266e5ffc597b04
Change-Id: Ia527f2b94c7a6147ad9d537376266e5ffc597b04
(cherry picked from commit d0613ac54a)
2018-05-08 10:27:09 +01:00

66 lines
1.5 KiB
Text

// Copyright 2017 The Android Open Source Project
metricslogger_lib_src_files = [
"metrics_logger.cpp",
]
cc_defaults {
name: "metricslogger_defaults",
host_supported: true,
export_include_dirs: ["include"],
local_include_dirs: ["include"],
shared_libs: ["liblog"],
whole_static_libs: ["libgtest_prod"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
}
// metricslogger shared library
// -----------------------------------------------------------------------------
cc_library_shared {
name: "libmetricslogger",
srcs: metricslogger_lib_src_files,
defaults: ["metricslogger_defaults"],
}
// static version of libmetricslogger, needed by a few art static binaries
cc_library_static {
name: "libmetricslogger_static",
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",
],
}