79 lines
2.5 KiB
Makefile
79 lines
2.5 KiB
Makefile
# This file was modified by Dolby Laboratories, Inc. The portions of the
|
|
# code that are surrounded by "DOLBY..." are copyrighted and
|
|
# licensed separately, as follows:
|
|
#
|
|
# (C) 2016 Dolby Laboratories, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This program is protected under international and U.S. Copyright laws as
|
|
# an unpublished work. This program is confidential and proprietary to the
|
|
# copyright owners. Reproduction or disclosure, in whole or in part, or the
|
|
# production of derivative works therefrom without the express permission of
|
|
# the copyright owners is prohibited.
|
|
#
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
main_audioserver.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libaudioflinger \
|
|
libaudiopolicyservice \
|
|
libbinder \
|
|
libcutils \
|
|
liblog \
|
|
libmedia \
|
|
libmedialogservice \
|
|
libnbaio \
|
|
libradioservice \
|
|
libsoundtriggerservice \
|
|
libutils
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
frameworks/av/services/audioflinger \
|
|
frameworks/av/services/audiopolicy \
|
|
frameworks/av/services/audiopolicy/common/managerdefinitions/include \
|
|
frameworks/av/services/audiopolicy/common/include \
|
|
frameworks/av/services/audiopolicy/engine/interface \
|
|
frameworks/av/services/audiopolicy/service \
|
|
frameworks/av/services/medialog \
|
|
frameworks/av/services/radio \
|
|
frameworks/av/services/soundtrigger \
|
|
$(call include-path-for, audio-utils) \
|
|
external/sonic \
|
|
|
|
# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
|
|
# the LOCAL_MULTILIB for all audioserver exclusive libraries.
|
|
# This is relevant for 64 bit architectures where either or both
|
|
# 32 and 64 bit libraries may be built.
|
|
#
|
|
# AUDIOSERVER_MULTILIB may be set as follows:
|
|
# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
|
|
# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
|
|
# both to build both 32 bit and 64 bit libraries,
|
|
# and use primary target architecture (32 or 64) for audioserver.
|
|
# first to build libraries and audioserver for the primary target architecture only.
|
|
# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
|
|
|
|
ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
|
|
LOCAL_MULTILIB := 32
|
|
else
|
|
LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
|
|
endif
|
|
|
|
LOCAL_MODULE := audioserver
|
|
|
|
LOCAL_INIT_RC := audioserver.rc
|
|
|
|
LOCAL_CFLAGS := -Werror -Wall
|
|
# DOLBY_START
|
|
ifeq ($(strip $(DOLBY_ENABLE)),true)
|
|
LOCAL_CFLAGS += $(dolby_cflags)
|
|
LOCAL_SHARED_LIBRARIES += $(dolby_shared_service_lib)
|
|
LOCAL_STATIC_LIBRARIES += $(dolby_static_service_lib)
|
|
endif
|
|
# DOLBY_END
|
|
|
|
include $(BUILD_EXECUTABLE)
|