audio: Access header files through header libs

Access header files through header libs which are not accessed
directly.

Change-Id: Ia98e31fd43d56e9bb4786ee00de49961047808d4
This commit is contained in:
Revathi Uddaraju 2018-04-02 21:27:54 +05:30 committed by Gerrit - the friendly Code Review server
parent a7e30cc3ed
commit e8bd13c719
4 changed files with 20 additions and 3 deletions

View File

@ -61,6 +61,8 @@ endif
LOCAL_CFLAGS += -Wno-macro-redefined
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_SRC_FILES := \
audio_hw.c \
voice.c \
@ -74,7 +76,7 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_HEADER_LIBRARIES := audio_kernel_headers
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
endif
ifneq ($(filter sdm670 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include

View File

@ -45,6 +45,10 @@ ifneq ($(strip $(AUDIO_FEATURE_DISABLED_DTS_EAGLE)),true)
LOCAL_CFLAGS += -DDTS_EAGLE
endif
LOCAL_HEADER_LIBRARIES := libhardware_headers \
libsystem_headers \
libutils_headers
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog \
@ -66,7 +70,7 @@ LOCAL_C_INCLUDES := \
$(call include-path-for, audio-effects)
ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_HEADER_LIBRARIES := audio_kernel_headers
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
endif
ifneq ($(filter sdm670 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
@ -100,6 +104,10 @@ LOCAL_SRC_FILES := EffectsHwAcc.cpp
LOCAL_C_INCLUDES := \
$(call include-path-for, audio-effects)
LOCAL_HEADER_LIBRARIES := libhardware_headers \
libsystem_headers \
libutils_headers
LOCAL_SHARED_LIBRARIES := \
liblog \
libeffects
@ -148,6 +156,10 @@ LOCAL_SRC_FILES:= \
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
LOCAL_HEADER_LIBRARIES := libhardware_headers \
libsystem_headers \
libutils_headers
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog \
@ -170,7 +182,7 @@ LOCAL_C_INCLUDES := \
external/tinycompress/include
ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_HEADER_LIBRARIES := audio_kernel_headers
LOCAL_HEADER_LIBRARIES += audio_kernel_headers
endif
ifneq ($(filter sdm670 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include

View File

@ -27,6 +27,8 @@ ifneq ($(filter sdm660 sdm845 msm8998 apq8098_latv sdm670 qcs605 msmnile,$(TARGE
LOCAL_CFLAGS += -DCAPTURE_DEVICE=7
endif
LOCAL_HEADER_LIBRARIES := libsystem_headers \
libhardware_headers
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog \

View File

@ -22,6 +22,7 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_SHARED_LIBRARIES += libdl
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_CFLAGS += -Wno-unused-variable