Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) |
Giulio Cervera | 1bac86c | 2013-02-27 22:21:28 +0100 | [diff] [blame] | 4 | |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 5 | ifneq ($(TARGET_USES_QCOM_COMPRESSED_AUDIO),false) |
| 6 | common_cflags += -DQCOM_COMPRESSED_AUDIO_ENABLED |
| 7 | endif |
| 8 | |
Giulio Cervera | 1bac86c | 2013-02-27 22:21:28 +0100 | [diff] [blame] | 9 | $(shell mkdir -p $(OUT)/obj/SHARED_LIBRARIES/libalsa-intf_intermediates) |
| 10 | $(shell touch $(OUT)/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/export_includes) |
| 11 | $(shell mkdir -p $(OUT)/obj/SHARED_LIBRARIES/libacdbloader_intermediates) |
| 12 | $(shell touch $(OUT)/obj/SHARED_LIBRARIES/libacdbloader_intermediates/export_includes) |
| 13 | |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 14 | # Any prebuilt files with default TAGS can use the below: |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 15 | include $(CLEAR_VARS) |
| 16 | #LOCAL_SRC_FILES:= aplay.c alsa_pcm.c alsa_mixer.c |
| 17 | LOCAL_SRC_FILES:= aplay.c |
| 18 | LOCAL_MODULE:= aplay |
| 19 | LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 20 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 21 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 22 | LOCAL_CFLAGS := $(common_cflags) |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 23 | LOCAL_MODULE_TAGS:= debug |
| 24 | include $(BUILD_EXECUTABLE) |
| 25 | |
| 26 | include $(CLEAR_VARS) |
| 27 | #LOCAL_SRC_FILES:= arec.c alsa_pcm.c |
| 28 | LOCAL_SRC_FILES:= arec.c |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 30 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 31 | LOCAL_MODULE:= arec |
| 32 | LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 33 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 34 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 35 | LOCAL_CFLAGS := $(common_cflags) |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 36 | LOCAL_MODULE_TAGS:= debug |
| 37 | include $(BUILD_EXECUTABLE) |
| 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | LOCAL_SRC_FILES:= amix.c |
| 41 | LOCAL_MODULE:= amix |
| 42 | LOCAL_SHARED_LIBRARIES := libc libcutils libalsa-intf |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 43 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 44 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 45 | LOCAL_CFLAGS := $(common_cflags) |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 46 | LOCAL_MODULE_TAGS:= debug |
| 47 | include $(BUILD_EXECUTABLE) |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_SRC_FILES:= alsaucm_test.c |
| 51 | LOCAL_MODULE:= alsaucm_test |
| 52 | LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 53 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 54 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 55 | LOCAL_CFLAGS := $(common_cflags) |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 56 | LOCAL_MODULE_TAGS:= debug |
| 57 | include $(BUILD_EXECUTABLE) |
| 58 | |
| 59 | include $(CLEAR_VARS) |
| 60 | LOCAL_COPY_HEADERS_TO := mm-audio/libalsa-intf |
| 61 | LOCAL_COPY_HEADERS := alsa_audio.h |
| 62 | LOCAL_COPY_HEADERS += alsa_ucm.h |
| 63 | LOCAL_COPY_HEADERS += msm8960_use_cases.h |
| 64 | LOCAL_SRC_FILES:= alsa_mixer.c alsa_pcm.c alsa_ucm.c |
| 65 | LOCAL_MODULE:= libalsa-intf |
| 66 | LOCAL_MODULE_TAGS := optional |
| 67 | LOCAL_SHARED_LIBRARIES:= libc libcutils #libutils #libmedia libhardware_legacy |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 68 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
Steve Kondik | e36366f | 2013-08-14 01:43:16 -0700 | [diff] [blame] | 69 | LOCAL_CFLAGS := $(common_cflags) -DQC_PROP -DCONFIG_DIR=\"/system/etc/snd_soc_msm/\" |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 70 | LOCAL_CFLAGS += -DCONFIG_DIR=\"/system/etc/snd_soc_msm/\" |
Mingming Yin | bbd94ad | 2012-11-29 20:04:36 -0800 | [diff] [blame] | 71 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
Iliyan Malchev | 4765c43 | 2012-06-11 14:36:16 -0700 | [diff] [blame] | 72 | ifeq ($(TARGET_SIMULATOR),true) |
| 73 | LOCAL_LDLIBS += -ldl |
| 74 | else |
| 75 | LOCAL_SHARED_LIBRARIES += libdl |
| 76 | endif |
| 77 | LOCAL_PRELINK_MODULE := false |
| 78 | include $(BUILD_SHARED_LIBRARY) |
| 79 | endif |