sm8250-common: amplifier: Clean up makefile.

Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f
This commit is contained in:
Alexander Koskovich 2021-03-02 08:45:17 -07:00 committed by LuK1337
parent 623635f450
commit 4a242e6a1f

View file

@ -1,5 +1,5 @@
# #
# Copyright 2020 The LineageOS Project # Copyright 2020-2021 The LineageOS Project
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@ -17,38 +17,28 @@
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := \
libbase \
liblog \
libcutils \
libtinyalsa \
libtinycompress \
libaudioroute \
libdl \
libaudioutils \
libhwbinder \
libhidlbase \
libprocessgroup \
libutils \
audio.primary.$(TARGET_BOARD_PLATFORM)
LOCAL_C_INCLUDES += \
external/tinyalsa/include \
external/tinycompress/include \
hardware/libhardware/include \
system/media/audio_utils/include \
$(call include-path-for, audio-effects) \
$(call include-path-for, audio-route) \
$(call project-path-for,qcom-audio)/hal \
$(call project-path-for,qcom-audio)/hal/msm8974 \
$(call project-path-for,qcom-audio)/hal/audio_extn \
$(call project-path-for,qcom-audio)/hal/voice_extn
LOCAL_HEADER_LIBRARIES := generated_kernel_headers
LOCAL_SRC_FILES := audio_amplifier.c
LOCAL_MODULE := audio_amplifier.$(TARGET_BOARD_PLATFORM) LOCAL_MODULE := audio_amplifier.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := audio_amplifier.c
LOCAL_VENDOR_MODULE := true LOCAL_VENDOR_MODULE := true
LOCAL_C_INCLUDES += \
$(call include-path-for, audio-route) \
$(call include-path-for, audio-utils) \
$(call project-path-for, qcom-audio)/hal \
$(call project-path-for, qcom-audio)/hal/audio_extn \
$(call project-path-for, qcom-audio)/hal/msm8974 \
external/tinycompress/include
LOCAL_HEADER_LIBRARIES += \
generated_kernel_headers \
libhardware_headers
LOCAL_SHARED_LIBRARIES += \
audio.primary.$(TARGET_BOARD_PLATFORM) \
libcutils \
liblog \
libtinyalsa
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)