1c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_PATH:= $(call my-dir) 2c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 3c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurentinclude $(CLEAR_VARS) 4c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 52d388eccc9dc085337c7a03a68467cbee6b809e1Eric LaurentLOCAL_SRC_FILES:= \ 6ba2b43990a7b4f0f2c425cf6cdfc63376a45772cbryant_liu AudioPolicyService.cpp \ 7ba2b43990a7b4f0f2c425cf6cdfc63376a45772cbryant_liu AudioPolicyEffects.cpp 8dce54a1492c410ad0d93253b341fb33305337505Eric Laurent 9dce54a1492c410ad0d93253b341fb33305337505Eric Laurentifeq ($(USE_LEGACY_AUDIO_POLICY), 1) 10dce54a1492c410ad0d93253b341fb33305337505Eric LaurentLOCAL_SRC_FILES += \ 11dce54a1492c410ad0d93253b341fb33305337505Eric Laurent AudioPolicyInterfaceImplLegacy.cpp \ 12dce54a1492c410ad0d93253b341fb33305337505Eric Laurent AudioPolicyClientImplLegacy.cpp 13dce54a1492c410ad0d93253b341fb33305337505Eric Laurent 14dce54a1492c410ad0d93253b341fb33305337505Eric Laurent LOCAL_CFLAGS += -DUSE_LEGACY_AUDIO_POLICY 15dce54a1492c410ad0d93253b341fb33305337505Eric Laurentelse 16dce54a1492c410ad0d93253b341fb33305337505Eric LaurentLOCAL_SRC_FILES += \ 172d388eccc9dc085337c7a03a68467cbee6b809e1Eric Laurent AudioPolicyInterfaceImpl.cpp \ 1898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent AudioPolicyClientImpl.cpp 19dce54a1492c410ad0d93253b341fb33305337505Eric Laurentendif 20c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 21c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_C_INCLUDES := \ 22c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent $(TOPDIR)frameworks/av/services/audioflinger \ 23c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent $(call include-path-for, audio-effects) \ 24c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent $(call include-path-for, audio-utils) 25c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 26c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_SHARED_LIBRARIES := \ 27c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent libcutils \ 28c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent libutils \ 29c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent liblog \ 30c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent libbinder \ 31c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent libmedia \ 32c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent libhardware \ 335db7897ddd32e3ec3ab45ecdb6f21b6265e7e14aChong Zhang libhardware_legacy \ 345db7897ddd32e3ec3ab45ecdb6f21b6265e7e14aChong Zhang libserviceutility 3598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 3698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentifneq ($(USE_LEGACY_AUDIO_POLICY), 1) 3798c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SHARED_LIBRARIES += \ 3898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent libaudiopolicymanager 3998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif 40c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 41c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_STATIC_LIBRARIES := \ 425db7897ddd32e3ec3ab45ecdb6f21b6265e7e14aChong Zhang libmedia_helper 43c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 4498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_MODULE:= libaudiopolicyservice 45c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 46c7e5040aa8b8e4da86814bf560346c7571e48087Eric LaurentLOCAL_CFLAGS += -fvisibility=hidden 47c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurent 48c7e5040aa8b8e4da86814bf560346c7571e48087Eric Laurentinclude $(BUILD_SHARED_LIBRARY) 4998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 50f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 5198c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentifneq ($(USE_LEGACY_AUDIO_POLICY), 1) 5298c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 5398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentinclude $(CLEAR_VARS) 5498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 5598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SRC_FILES:= \ 5698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent AudioPolicyManager.cpp 5798c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 5898c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_SHARED_LIBRARIES := \ 5998c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent libcutils \ 6098c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent libutils \ 61df3dc7e2fe6c639529b70e3f3a7d2bf0f4c6e871Eric Laurent liblog \ 62df3dc7e2fe6c639529b70e3f3a7d2bf0f4c6e871Eric Laurent libsoundtrigger 6398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 6498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_STATIC_LIBRARIES := \ 6598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent libmedia_helper 6698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 67f269b8e0e9ab950fc6652b9594b7a3431c81630cEric LaurentLOCAL_MODULE:= libaudiopolicymanagerdefault 68f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 69f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentinclude $(BUILD_SHARED_LIBRARY) 70f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 71f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentifneq ($(USE_CUSTOM_AUDIO_POLICY), 1) 72f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 73f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentinclude $(CLEAR_VARS) 74f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 75f269b8e0e9ab950fc6652b9594b7a3431c81630cEric LaurentLOCAL_SRC_FILES:= \ 76f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent AudioPolicyFactory.cpp 77f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 78f269b8e0e9ab950fc6652b9594b7a3431c81630cEric LaurentLOCAL_SHARED_LIBRARIES := \ 79f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent libaudiopolicymanagerdefault 80f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent 8198c6be0e30fa28e752b13f3dd5986d41710bb7aeEric LaurentLOCAL_MODULE:= libaudiopolicymanager 8298c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 8398c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentinclude $(BUILD_SHARED_LIBRARY) 8498c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurent 8598c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif 8698c6be0e30fa28e752b13f3dd5986d41710bb7aeEric Laurentendif 87