Commit | Line | Data |
---|---|---|
5763fb39 T |
1 | # Copyright (C) 2014 The Android Open Source Project |
2 | # | |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | # you may not use this file except in compliance with the License. | |
5 | # You may obtain a copy of the License at | |
6 | # | |
7 | # http://www.apache.org/licenses/LICENSE-2.0 | |
8 | # | |
9 | # Unless required by applicable law or agreed to in writing, software | |
10 | # distributed under the License is distributed on an "AS IS" BASIS, | |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | # See the License for the specific language governing permissions and | |
13 | # limitations under the License. | |
14 | ||
15 | # | |
16 | # Primary Audio HAL | |
17 | # | |
18 | LOCAL_PATH := $(call my-dir) | |
19 | DEVICE_BASE_PATH := $(TOP)/device/samsung | |
20 | ||
21 | include $(CLEAR_VARS) | |
22 | ||
23 | LOCAL_SRC_FILES := \ | |
24 | audio_hw.c | |
25 | ||
26 | ifeq ($(BOARD_USE_SIPC_RIL), true) | |
27 | LOCAL_SRC_FILES += \ | |
28 | sec/voice_manager.c | |
29 | else | |
30 | LOCAL_SRC_FILES += \ | |
31 | ww/voice_manager.c | |
32 | endif | |
33 | ||
34 | LOCAL_C_INCLUDES += \ | |
35 | external/tinyalsa/include \ | |
36 | external/tinycompress/include \ | |
37 | external/kernel-headers/original/uapi/sound \ | |
38 | $(call include-path-for, audio-route) \ | |
39 | $(call include-path-for, audio-utils) \ | |
40 | $(DEVICE_BASE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/conf \ | |
41 | external/expat/lib | |
42 | ||
43 | ifeq ($(BOARD_USE_SIPC_RIL), true) | |
44 | LOCAL_C_INCLUDES += \ | |
45 | $(LOCAL_PATH)/sec | |
46 | else | |
47 | LOCAL_C_INCLUDES += \ | |
48 | $(LOCAL_PATH)/ww | |
49 | endif | |
50 | ||
51 | LOCAL_SHARED_LIBRARIES := \ | |
52 | liblog \ | |
53 | libcutils \ | |
54 | libtinyalsa \ | |
55 | libtinycompress \ | |
56 | libaudioroute \ | |
57 | libaudioutils \ | |
58 | libdl \ | |
59 | libexpat | |
60 | ||
61 | ifeq ($(BOARD_USE_SIPC_RIL), true) | |
62 | LOCAL_CFLAGS += -DSUPPORT_SIPC_RIL | |
63 | endif | |
64 | ||
65 | LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME) | |
66 | LOCAL_MODULE_RELATIVE_PATH := hw | |
67 | ||
68 | LOCAL_MODULE_TAGS := optional | |
69 | ||
70 | include $(BUILD_SHARED_LIBRARY) | |
71 | ||
72 | include $(call all-makefiles-under,$(LOCAL_PATH)) |