LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_PROPRIETARY_MODULE := true LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib/hw LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64/hw LOCAL_MODULE := sound_trigger.primary.default LOCAL_MULTILIB := 32 LOCAL_SRC_FILES := sound_trigger_hw.c ifeq ($(strip $(PRODUCT_TYPE)),tv) LOCAL_CFLAGS += -DTV_TYPE endif ifeq ($(strip $(PRODUCT_TYPE)),tv) LOCAL_SHARED_LIBRARIES := liblog libcutils libuapi_securec else LOCAL_SHARED_LIBRARIES := liblog libcutils libuapi_securec endif LOCAL_HEADER_LIBRARIES := libhardware_headers LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS += -Wno-unused-parameter LOCAL_CFLAGS += -Wno-format-nonliteral LOCAL_CFLAGS += -Wno-unused-variable LOCAL_CFLAGS += -Wno-incompatible-pointer-types LOCAL_CFLAGS += -Wno-unused-function LOCAL_CFLAGS += -Wno-pointer-integer-compare LOCAL_CFLAGS += -fno-common LOCAL_C_INCLUDES += \ frameworks/av/media/libstagefright/foundation/include \ hardware/libhardware/include \ system/media/audio/include \ $(LOCAL_PATH) \ vendor/platform/secure_c/include include $(BUILD_SHARED_LIBRARY)