From 4a242e6a1f5c795425f580b65e7194edf16fa3c9 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Tue, 2 Mar 2021 08:45:17 -0700 Subject: [PATCH] sm8250-common: amplifier: Clean up makefile. Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f --- audio_amplifier/Android.mk | 50 +++++++++++++++----------------------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/audio_amplifier/Android.mk b/audio_amplifier/Android.mk index fa8a8b5..c669344 100644 --- a/audio_amplifier/Android.mk +++ b/audio_amplifier/Android.mk @@ -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"); # you may not use this file except in compliance with the License. @@ -17,38 +17,28 @@ LOCAL_PATH := $(call my-dir) 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_RELATIVE_PATH := hw -LOCAL_MODULE_TAGS := optional +LOCAL_SRC_FILES := audio_amplifier.c 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)