summaryrefslogtreecommitdiff
path: root/android/audioresample.mk
blob: 842151139690f87e0e12c2a8ed9b50b2706e3e69 (plain)
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
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_ARM_MODE := arm

audioresample_LOCAL_SRC_FILES:= \
	gst/audioresample/gstaudioresample.c \
	gst/audioresample/resample.c \
	gst/audioresample/speex_resampler_float.c \
	gst/audioresample/speex_resampler_double.c

audioresample_C_INCLUDES := $(LOCAL_PATH)/ \

LOCAL_SRC_FILES := $(addprefix ../,$(audioresample_LOCAL_SRC_FILES))
LOCAL_C_INCLUDES := $(audioresample_C_INCLUDES)
 
LOCAL_SHARED_LIBRARIES := \
    libgstaudio-0.10        \
    libgstreamer-0.10       \
    libgstbase-0.10         \
    libglib-2.0             \
    libgthread-2.0          \
    libgmodule-2.0          \
    libgobject-2.0 			\
    libgstpbutils-0.10

LOCAL_MODULE:= libgstaudioresample

LOCAL_CFLAGS := -DFLOATING_POINT -DOUTSIDE_SPEEX -DRANDOM_PREFIX=gst -DDISABLE_ORC -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID \
	$(GST_PLUGINS_BASE_CFLAGS)
LOCAL_PRELINK_MODULE := false

#It's a gstreamer plugin so it should be installed in /lib/gstreamer-0.10
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)