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

Commit 1bc948a0 authored by Arne Coucheron's avatar Arne Coucheron
Browse files

audio: Add audio headers lib

LOCAL_COPY_HEADERS is deprecated. Replace with
headers lib to avoid build warnings.

Change-Id: I94f23eae4dc2836f4b3237c33f0b2e608d2cc1e2
parent b18577ff
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ LOCAL_SRC_FILES := \

LOCAL_SRC_FILES += audio_extn/audio_extn.c

LOCAL_HEADER_LIBRARIES := generated_kernel_headers
LOCAL_HEADER_LIBRARIES := generated_kernel_headers audio_headers

ifeq ($(strip $(AUDIO_USE_LL_AS_PRIMARY_OUTPUT)),true)
    LOCAL_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT
@@ -194,9 +194,6 @@ endif

LOCAL_CLANG_CFLAGS += -Wno-unused-variable -Wno-unused-function -Wno-missing-field-initializers

LOCAL_COPY_HEADERS_TO   := mm-audio
LOCAL_COPY_HEADERS      := audio_extn/audio_defs.h

LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)

LOCAL_MODULE_RELATIVE_PATH := hw
@@ -209,4 +206,9 @@ LOCAL_CFLAGS += -Werror

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := audio_headers
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/audio_extn
include $(BUILD_HEADER_LIBRARY)

endif