# external/alsa-lib/Android.mk # # Copyright 2008 Wind River Systems # ifeq ($(TARGET_DEVICE),crespo) ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libasound LOCAL_ARM_MODE := arm LOCAL_C_INCLUDES += $(LOCAL_PATH)/include # libasound must be compiled with -fno-short-enums, as it makes extensive # use of enums which are often type casted to unsigned ints. LOCAL_CFLAGS := \ -fPIC -DPIC -D_POSIX_SOURCE \ -DALSA_CONFIG_DIR=\"/system/usr/share/alsa\" \ -DALSA_PLUGIN_DIR=\"/system/usr/lib/alsa-lib\" \ -DALSA_DEVICE_DIRECTORY=\"/dev/snd/\" LOCAL_SRC_FILES := $(sort $(call all-c-files-under, src)) # It is easier to exclude the ones we don't want... # LOCAL_SRC_FILES := $(filter-out src/alisp/alisp_snd.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/compat/hsearch_r.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/control/control_shm.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/pcm/pcm_d%.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/pcm/pcm_ladspa.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/pcm/pcm_shm.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/pcm/scopes/level.c, $(LOCAL_SRC_FILES)) LOCAL_SRC_FILES := $(filter-out src/shmarea.c, $(LOCAL_SRC_FILES)) LOCAL_MODULE_TAGS := optional include $(BUILD_STATIC_LIBRARY) endif endif