Skip to content

Commit

Permalink
amplifier: Clean up makefile.
Browse files Browse the repository at this point in the history
Change-Id: I416005aec3e4b6a686079d7e4796e5b548ee0e9f
  • Loading branch information
AKoskovich authored and luk1337 committed Sep 20, 2021
1 parent cf6ea53 commit 2cc8fad
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions audio_amplifier/Android.mk
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -19,40 +19,30 @@ LOCAL_PATH := $(call my-dir)
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER)),true)

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)

endif

0 comments on commit 2cc8fad

Please sign in to comment.