platform_system_core/libmetricslogger/Android.bp
Lennart Wieboldt cd15fc7ba8 Remove LOCAL_CLANG and clang: true
clang is the default compiler since Android nougat

Test: mma & verified it´s still build with clang
Change-Id: I34adaeef2f6558a09f26027271222bad94780507
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2017-07-25 14:29:50 +02:00

64 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",
// 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",
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",
],
}