Add statsdprotolite in Android.bp

Bug: b/113069884

Test: Successfully able to build.
Change-Id: I857957e816506162496192fe0ad1da4dbdfd4efd
This commit is contained in:
gopinath
2018-08-22 16:45:57 -07:00
parent 9ea623cab6
commit a9864fdcd3
2 changed files with 22 additions and 22 deletions

View File

@@ -43,3 +43,25 @@ cc_library_host_shared {
}
// ==== java proto device library (for test only) ==============================
java_library {
name: "statsdprotolite",
proto: {
type: "lite",
include_dirs: ["external/protobuf/src"],
},
srcs: [
"src/stats_log.proto",
"src/statsd_config.proto",
"src/atoms.proto",
],
static_libs: [
"platformprotoslite",
],
// Protos have lots of MissingOverride and similar.
errorprone: {
javacflags: ["-XepDisableAllChecks"],
},
}

View File

@@ -242,28 +242,6 @@ LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \
include $(BUILD_NATIVE_TEST)
##############################
# stats proto static java lib
##############################
include $(CLEAR_VARS)
LOCAL_MODULE := statsdprotolite
LOCAL_SRC_FILES := \
src/stats_log.proto \
src/statsd_config.proto \
src/atoms.proto
LOCAL_PROTOC_OPTIMIZE_TYPE := lite
LOCAL_STATIC_JAVA_LIBRARIES := \
platformprotoslite
LOCAL_PROTOC_FLAGS := \
-Iexternal/protobuf/src
include $(BUILD_STATIC_JAVA_LIBRARY)
##############################
# statsd micro benchmark
##############################