forked from Decatf/android-audio-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroid.mk
74 lines (57 loc) · 1.45 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
LOCAL_PATH := $(call my-dir)
ifneq ($(AUDIO_WRAPPER_CONFIG),)
include $(AUDIO_WRAPPER_CONFIG)
else
include $(LOCAL_PATH)/config.mk
endif
L_CFLAGS := -g -Wall
#
# Process config
#
ifeq ($(FRAMEWORK_EXPECTS_ICS_AUDIO_BLOB),true)
L_CFLAGS += -DICS_AUDIO_BLOB
else
L_CFLAGS += -DCONVERT_AUDIO_DEVICES_T
endif
ifneq ($(BUILD_AUDIO_POLICY_WRAPPER),true)
ifeq ($(HTC_ICS_AUDIO_BLOB),true)
L_CFLAGS += -DNO_HTC_POLICY_MANAGER
endif
endif
#
# Audio Policy Wrapper
#
ifeq ($(BUILD_AUDIO_POLICY_WRAPPER), true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
common.cpp \
aps_wrapper.cpp \
audio_policy.cpp
LOCAL_SHARED_LIBRARIES := \
libhardware liblog libutils
LOCAL_STATIC_LIBRARIES := libmedia_helper
LOCAL_CFLAGS := $(L_CFLAGS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := audio_policy.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
endif
#
# Audio HW Wrapper
#
ifeq ($(BUILD_AUDIO_HW_WRAPPER), true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
common.cpp \
audio_hw.cpp
LOCAL_SHARED_LIBRARIES := \
libhardware liblog libutils
LOCAL_STATIC_LIBRARIES := libmedia_helper
LOCAL_CFLAGS := $(L_CFLAGS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
endif