-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
146 lines (98 loc) · 2.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# hardware/libaudio-alsa/Android.mk
#
# Copyright 2008 Wind River Systems
#
ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := -D_POSIX_SOURCE
LOCAL_C_INCLUDES += external/alsa-lib/include
LOCAL_SRC_FILES := \
AudioHardwareALSA.cpp \
AudioStreamOutALSA.cpp \
AudioStreamInALSA.cpp \
ALSAStreamOps.cpp \
ALSAMixer.cpp \
ALSAControl.cpp
LOCAL_MODULE := libaudio
LOCAL_MODULE_TAGS := eng
LOCAL_STATIC_LIBRARIES := \
libmedia_helper
LOCAL_WHOLE_STATIC_LIBRARIES := \
libaudiohw_legacy
LOCAL_SHARED_LIBRARIES := \
libasound \
libcutils \
libutils \
libmedia \
libhardware \
libhardware_legacy \
libc
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_SHARED_LIBRARIES += liba2dp
# LOCAL_SHARED_LIBRARIES += audio.a2dp.default
endif
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := audio.primary.emxx
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SRC_FILES := audio_hw_hal.cpp
LOCAL_C_INCLUDES += \
LOCAL_STATIC_LIBRARIES := \
libmedia_helper
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libmedia \
libaudio
LOCAL_MODULE_TAGS := eng
include $(BUILD_SHARED_LIBRARY)
# This is the ALSA audio policy manager
include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_CFLAGS := -D_POSIX_SOURCE
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_CFLAGS += -DWITH_A2DP
endif
LOCAL_SRC_FILES := AudioPolicyManagerALSA.cpp
# LOCAL_MODULE := libaudiopolicy
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := audio_policy.emxx
LOCAL_STATIC_LIBRARIES := \
libmedia_helper
LOCAL_WHOLE_STATIC_LIBRARIES := \
libaudiopolicy_legacy
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libmedia
include $(BUILD_SHARED_LIBRARY)
# This is the default ALSA module which behaves closely like the original
include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_CFLAGS := -D_POSIX_SOURCE -Wno-multichar
ifneq ($(ALSA_DEFAULT_SAMPLE_RATE),)
LOCAL_CFLAGS += -DALSA_DEFAULT_SAMPLE_RATE=$(ALSA_DEFAULT_SAMPLE_RATE)
endif
LOCAL_C_INCLUDES += external/alsa-lib/include
LOCAL_SRC_FILES:= \
alsa_default.cpp
LOCAL_SHARED_LIBRARIES := \
libasound \
liblog \
libaudio
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := alsa.emxx
include $(BUILD_SHARED_LIBRARY)
# This is the default Acoustics module which is essentially a stub
include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_CFLAGS := -D_POSIX_SOURCE -Wno-multichar
LOCAL_C_INCLUDES += external/alsa-lib/include
LOCAL_SRC_FILES:= acoustics_default.cpp
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE:= acoustics.default
include $(BUILD_SHARED_LIBRARY)
endif