Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9864fdc authored by gopinath's avatar gopinath
Browse files

Add statsdprotolite in Android.bp

Bug: b/113069884

Test: Successfully able to build.
Change-Id: I857957e816506162496192fe0ad1da4dbdfd4efd
parent 9ea623ca
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -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"],
    },
}
+0 −22
Original line number Diff line number Diff line
@@ -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
##############################