File: Android.mk

package info (click to toggle)
rubberband 1.8.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,376 kB
  • ctags: 1,909
  • sloc: cpp: 13,156; ansic: 2,777; makefile: 244; java: 77
file content (86 lines) | stat: -rw-r--r-- 2,507 bytes parent folder | download | duplicates (2)
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

LOCAL_MODULE := rubberband
LOCAL_MODULE_FILENAME := librubberband

LOCAL_C_INCLUDES := $(LOCAL_PATH)/rubberband $(LOCAL_PATH)/rubberband/src

RUBBERBAND_PATH := rubberband
RUBBERBAND_SRC_PATH := $(RUBBERBAND_PATH)/src

RUBBERBAND_JNI_FILES := \
	$(RUBBERBAND_SRC_PATH)/jni/RubberBandStretcherJNI.cpp

RUBBERBAND_SRC_FILES := \
        $(RUBBERBAND_SRC_PATH)/base/Profiler.cpp \
        $(RUBBERBAND_SRC_PATH)/system/Thread.cpp \
        $(RUBBERBAND_SRC_PATH)/system/Allocators.cpp \
        $(RUBBERBAND_SRC_PATH)/system/sysutils.cpp \
        $(RUBBERBAND_SRC_PATH)/system/VectorOpsComplex.cpp \
        $(RUBBERBAND_SRC_PATH)/StretcherChannelData.cpp \
        $(RUBBERBAND_SRC_PATH)/dsp/AudioCurveCalculator.cpp \
        $(RUBBERBAND_SRC_PATH)/dsp/FFT.cpp \
        $(RUBBERBAND_SRC_PATH)/dsp/Resampler.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/SilentAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/CompoundAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/HighFrequencyAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/SpectralDifferenceAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/ConstantAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/audiocurves/PercussiveAudioCurve.cpp \
        $(RUBBERBAND_SRC_PATH)/StretcherImpl.cpp \
        $(RUBBERBAND_SRC_PATH)/StretcherProcess.cpp \
        $(RUBBERBAND_SRC_PATH)/StretchCalculator.cpp \
        $(RUBBERBAND_SRC_PATH)/RubberBandStretcher.cpp \
        $(RUBBERBAND_SRC_PATH)/speex/resample.c

LOCAL_SRC_FILES += \
	$(RUBBERBAND_JNI_FILES) \
        $(RUBBERBAND_SRC_FILES)

LOCAL_SRC_FILES += \
	$(RUBBERBAND_SRC_PATH)/kissfft/kiss_fft.c \
	$(RUBBERBAND_SRC_PATH)/kissfft/kiss_fftr.c

LOCAL_CFLAGS_DEBUG := \
	-g \
	-mfloat-abi=softfp \
	-DWANT_TIMING \
	-DFFT_MEASUREMENT

LOCAL_CFLAGS_RELEASE := \
	-O3 \
	-mfpu=neon \
	-mfloat-abi=softfp \
	-ffast-math \
	-ftree-vectorize \
	-ftree-vect-loop-version \
	-freciprocal-math \
	-fsingle-precision-constant \
	-D__ARM_ARCH_7__ \
	-DUSE_POMMIER_MATHFUN \
	-DNO_TIMING \
	-DNO_TIMING_COMPLETE_NOOP

LOCAL_CFLAGS := \
	-Wall \
	-I$(RUBBERBAND_PATH) \
	-I$(RUBBERBAND_SRC_PATH) \
	-DUSE_SPEEX \
	-DUSE_KISSFFT \
	-DPROCESS_SAMPLE_TYPE=float \
	-DLACK_POSIX_MEMALIGN \
	-DUSE_OWN_ALIGNED_MALLOC \
	-DLACK_BAD_ALLOC \
	-DLACK_SINCOS \
	-DNO_EXCEPTIONS \
	-DNO_THREADING \
	-DNO_THREAD_CHECKS \
	$(LOCAL_CFLAGS_RELEASE)

LOCAL_LDLIBS += -llog

TARGET_ARCH_ABI	:= armeabi-v7a
LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true

include $(BUILD_SHARED_LIBRARY)