diff options
author | Pig <pig.priv@gmail.com> | 2020-09-19 08:57:38 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-09-05 19:30:35 +0800 |
commit | 9131fcecf8e0d506d11a50877f576afdec33cc59 (patch) | |
tree | df0f6e59f6a65a3f54a2f81c342b1937dfa94ecd | |
parent | c258a9af382ba30e501743bb938fcdc9e463de01 (diff) |
audio: Drop LOCAL_COPY_HEADERS usage
LOCAL_COPY_HEADERS is deprecated, so remove all its usages
to avoid build warnings.
Change-Id: I4c52508e9109c5f448653fd5613a8991d28bbb2e
-rw-r--r-- | hal/Android.mk | 3 | ||||
-rw-r--r-- | qahw/Android.mk | 15 | ||||
-rw-r--r-- | qahw_api/Android.mk | 27 | ||||
-rw-r--r-- | qahw_api/test/Android.mk | 13 |
4 files changed, 29 insertions, 29 deletions
diff --git a/hal/Android.mk b/hal/Android.mk index faf632c4..30a2059a 100644 --- a/hal/Android.mk +++ b/hal/Android.mk @@ -368,8 +368,7 @@ endif LOCAL_CFLAGS += -D_GNU_SOURCE LOCAL_CFLAGS += -Wall -Werror -LOCAL_COPY_HEADERS_TO := mm-audio -LOCAL_COPY_HEADERS := audio_extn/audio_defs.h +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage diff --git a/qahw/Android.mk b/qahw/Android.mk index decd4c63..7cd908a5 100644 --- a/qahw/Android.mk +++ b/qahw/Android.mk @@ -5,11 +5,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -libqahw-inc := $(LOCAL_PATH)/inc - LOCAL_MODULE := libqahwwrapper LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(libqahw-inc) +LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc LOCAL_HEADER_LIBRARIES := libutils_headers \ libsystem_headers \ @@ -27,10 +25,6 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_CFLAGS += -Wall -Werror -LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc -LOCAL_COPY_HEADERS := inc/qahw.h -LOCAL_COPY_HEADERS += inc/qahw_effect_api.h - LOCAL_PROPRIETARY_MODULE := true LOCAL_VENDOR_MODULE := true @@ -39,5 +33,12 @@ LOCAL_SANITIZE := integer_overflow endif include $(BUILD_SHARED_LIBRARY) +include $(CLEAR_VARS) + +LOCAL_MODULE := libqahw_headers +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc +LOCAL_PROPRIETARY_MODULE := true + +include $(BUILD_HEADER_LIBRARY) endif endif diff --git a/qahw_api/Android.mk b/qahw_api/Android.mk index 30c326f1..5d1789c7 100644 --- a/qahw_api/Android.mk +++ b/qahw_api/Android.mk @@ -4,12 +4,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -libqahwapi-inc := $(LOCAL_PATH)/inc - LOCAL_MODULE := libqahw LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(libqahwapi-inc) -LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc +LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc LOCAL_SRC_FILES := \ src/qahw_api.cpp @@ -20,6 +17,9 @@ LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage LOCAL_STATIC_LIBRARIES += libprofile_rt endif +LOCAL_HEADER_LIBRARIES := \ + libqahw_headers + LOCAL_SHARED_LIBRARIES := \ liblog \ libcutils \ @@ -30,17 +30,6 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_CFLAGS += -Wall -Werror -LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc -LOCAL_COPY_HEADERS := inc/qahw_defs.h -LOCAL_COPY_HEADERS += inc/qahw_api.h -LOCAL_COPY_HEADERS += inc/qahw_effect_audiosphere.h -LOCAL_COPY_HEADERS += inc/qahw_effect_bassboost.h -LOCAL_COPY_HEADERS += inc/qahw_effect_environmentalreverb.h -LOCAL_COPY_HEADERS += inc/qahw_effect_equalizer.h -LOCAL_COPY_HEADERS += inc/qahw_effect_presetreverb.h -LOCAL_COPY_HEADERS += inc/qahw_effect_virtualizer.h -LOCAL_COPY_HEADERS += inc/qahw_effect_visualizer.h - LOCAL_VENDOR_MODULE := true ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) @@ -48,6 +37,14 @@ LOCAL_SANITIZE := integer_overflow endif include $(BUILD_SHARED_LIBRARY) +include $(CLEAR_VARS) + +LOCAL_MODULE := libqahwapi_headers +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc +LOCAL_PROPRIETARY_MODULE := true + +include $(BUILD_HEADER_LIBRARY) + #test app compilation include $(LOCAL_PATH)/test/Android.mk diff --git a/qahw_api/test/Android.mk b/qahw_api/test/Android.mk index 110a7651..bc7690de 100644 --- a/qahw_api/test/Android.mk +++ b/qahw_api/test/Android.mk @@ -7,12 +7,14 @@ LOCAL_SRC_FILES := qahw_playback_test.c \ qahw_effect_test.c LOCAL_MODULE := hal_play_test -hal-play-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc -hal-play-inc += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc hal-play-inc += external/tinyalsa/include LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare +LOCAL_HEADER_LIBRARIES := \ + libqahw_headers \ + libqahwapi_headers + LOCAL_SHARED_LIBRARIES := \ libaudioutils\ libqahw \ @@ -42,6 +44,10 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := qahw_multi_record_test.c LOCAL_MODULE := hal_rec_test LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare + +LOCAL_HEADER_LIBRARIES := \ + libqahwapi_headers + LOCAL_SHARED_LIBRARIES := \ libaudioutils \ libqahw \ @@ -49,9 +55,6 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_32_BIT_ONLY := true -hal-rec-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc - -LOCAL_C_INCLUDES += $(hal-rec-inc) LOCAL_VENDOR_MODULE := true ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |