platform_system_core/libmetricslogger/Android.bp
Howard Ro cd12793ccf Remove libmetricslogger_static
In aosp/790068, libmetricslogger is converted from cc_library_shared to
cc_library so there's no reason to keep both libmetricslogger and
libmetricslogger_static. All necessary dependencies are now cleaned up
therefore this can now be removed.

Change-Id: I09808d71771ac032f8b2b2d71944721fb03d3575
Fixes: 117829226
Test: compiles without failures
2018-10-18 17:49:18 -07:00

64 lines
1.4 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: [
"libbase",
"liblog",
"libstatssocket",
],
whole_static_libs: ["libgtest_prod"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
}
// metricslogger shared library
// -----------------------------------------------------------------------------
cc_library {
name: "libmetricslogger",
srcs: metricslogger_lib_src_files,
defaults: ["metricslogger_defaults"],
export_shared_lib_headers: ["libstatssocket"],
}
// 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",
isolated: true,
defaults: ["metricslogger_defaults"],
shared_libs: [
"libbase",
"libmetricslogger_debug",
],
srcs: [
"metrics_logger_test.cpp",
],
}