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

Commit 3085c2f2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Convert libmediametrics to Android.bp" into oc-dev-plus-aosp

parents 51354f82 81686252
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
cc_library_shared {
    name: "libmediametrics",

    srcs: [
        "IMediaAnalyticsService.cpp",
        "MediaAnalyticsItem.cpp",
    ],

    shared_libs: [
        "liblog",
        "libcutils",
        "libutils",
        "libbinder",
        "libstagefright_foundation",
        "libbase",
    ],

    export_include_dirs: ["include"],

    cflags: [
        "-Werror",
        "-Wno-error=deprecated-declarations",
        "-Wall",
    ],

    sanitize: {
        misc_undefined: [
            "unsigned-integer-overflow",
            "signed-integer-overflow",
        ],
        cfi: true,
        diag: {
            cfi: true,
        },
    },
}

media/libmediametrics/Android.mk

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES += \
    IMediaAnalyticsService.cpp \
    MediaAnalyticsItem.cpp \

LOCAL_SHARED_LIBRARIES := \
        liblog libcutils libutils libbinder \
        libstagefright_foundation \
        libbase \

LOCAL_MODULE:= libmediametrics

LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk

LOCAL_C_INCLUDES := \
    $(TOP)/system/libhidl/base/include \
    $(TOP)/frameworks/native/include/media/openmax \
    $(TOP)/frameworks/av/include/media/ \
    $(TOP)/frameworks/av/media/libmedia/aidl \
    $(TOP)/frameworks/av/include \
    $(TOP)/frameworks/native/include \
    $(call include-path-for, audio-utils)

LOCAL_EXPORT_C_INCLUDE_DIRS := \
    frameworks/av/include/media \

LOCAL_CFLAGS += -Werror -Wno-error=deprecated-declarations -Wall
LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow cfi
LOCAL_SANITIZE_DIAG := cfi

include $(BUILD_SHARED_LIBRARY)