Android.mk revision 98c6be0e30fa28e752b13f3dd5986d41710bb7ae
1c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_PATH:= $(call my-dir)
2c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
3c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurentinclude $(CLEAR_VARS)
4c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
52d388eccc9dc085337c7a03a68467cbee6b809e1Eric LaurentLOCAL_SRC_FILES:= \
6dce54a1492c410ad0d93253b341fb33305337505Eric Laurent    AudioPolicyService.cpp
7dce54a1492c410ad0d93253b341fb33305337505Eric Laurent
898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent# TODO: remove when enabling new audio policy
9dce54a1492c410ad0d93253b341fb33305337505Eric LaurentUSE_LEGACY_AUDIO_POLICY = 1
1098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
11dce54a1492c410ad0d93253b341fb33305337505Eric Laurentifeq ($(USE_LEGACY_AUDIO_POLICY), 1)
12dce54a1492c410ad0d93253b341fb33305337505Eric LaurentLOCAL_SRC_FILES += \
13dce54a1492c410ad0d93253b341fb33305337505Eric Laurent    AudioPolicyInterfaceImplLegacy.cpp \
14dce54a1492c410ad0d93253b341fb33305337505Eric Laurent    AudioPolicyClientImplLegacy.cpp
15dce54a1492c410ad0d93253b341fb33305337505Eric Laurent
16dce54a1492c410ad0d93253b341fb33305337505Eric Laurent    LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY
17dce54a1492c410ad0d93253b341fb33305337505Eric Laurentelse
18dce54a1492c410ad0d93253b341fb33305337505Eric LaurentLOCAL_SRC_FILES += \
192d388eccc9dc085337c7a03a68467cbee6b809e1Eric Laurent    AudioPolicyInterfaceImpl.cpp \
2098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    AudioPolicyClientImpl.cpp
21dce54a1492c410ad0d93253b341fb33305337505Eric Laurentendif
22c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
23c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_C_INCLUDES := \
24c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    $(TOPDIR)frameworks/av/services/audioflinger \
25c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    $(call include-path-for, audio-effects) \
26c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    $(call include-path-for, audio-utils)
27c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
28c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_SHARED_LIBRARIES := \
29c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libcutils \
30c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libutils \
31c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    liblog \
32c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libbinder \
33c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libmedia \
34c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libhardware \
3598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    libhardware_legacy \
3698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
3798c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
3898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SHARED_LIBRARIES += \
3998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    libaudiopolicymanager
4098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif
41c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
42c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_STATIC_LIBRARIES := \
43c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libmedia_helper \
44c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent    libserviceutility
45c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
4698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_MODULE:= libaudiopolicyservice
47c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
48c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_CFLAGS += -fvisibility=hidden
49c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent
50c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurentinclude $(BUILD_SHARED_LIBRARY)
5198c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
5298c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
5398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentifneq ($(USE_CUSTOM_AUDIO_POLICY), 1)
5498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
5598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentinclude $(CLEAR_VARS)
5698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
5798c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SRC_FILES:= \
5898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    AudioPolicyManager.cpp
5998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
6098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SHARED_LIBRARIES := \
6198c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    libcutils \
6298c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    libutils \
6398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    liblog
6498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
6598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_STATIC_LIBRARIES := \
6698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent    libmedia_helper
6798c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
6898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_MODULE:= libaudiopolicymanager
6998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
7098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentinclude $(BUILD_SHARED_LIBRARY)
7198c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent
7298c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif
7398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif
74