1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := libFLAC
6
7FLAC_OGG_LIBRARY_PATH := ../libogg-1.3.2
8
9LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
10                    $(LOCAL_PATH)/src/libFLAC/include \
11                    $(LOCAL_PATH)/$(FLAC_OGG_LIBRARY_PATH)/include \
12                    $(LOCAL_PATH)/$(FLAC_OGG_LIBRARY_PATH)/android
13LOCAL_CFLAGS := -include $(LOCAL_PATH)/android/config.h
14
15LOCAL_SRC_FILES := \
16    src/libFLAC/bitmath.c \
17    src/libFLAC/bitreader.c \
18    src/libFLAC/bitwriter.c \
19    src/libFLAC/cpu.c \
20    src/libFLAC/crc.c \
21    src/libFLAC/fixed.c \
22    src/libFLAC/fixed_intrin_sse2.c \
23    src/libFLAC/fixed_intrin_ssse3.c \
24    src/libFLAC/float.c \
25    src/libFLAC/format.c \
26    src/libFLAC/lpc.c \
27    src/libFLAC/lpc_intrin_sse.c \
28    src/libFLAC/lpc_intrin_sse2.c \
29    src/libFLAC/lpc_intrin_sse41.c \
30    src/libFLAC/lpc_intrin_avx2.c \
31    src/libFLAC/md5.c \
32    src/libFLAC/memory.c \
33    src/libFLAC/metadata_iterators.c \
34    src/libFLAC/metadata_object.c \
35    src/libFLAC/stream_decoder.c \
36    src/libFLAC/stream_encoder.c \
37    src/libFLAC/stream_encoder_intrin_sse2.c \
38    src/libFLAC/stream_encoder_intrin_ssse3.c \
39    src/libFLAC/stream_encoder_intrin_avx2.c \
40    src/libFLAC/stream_encoder_framing.c \
41    src/libFLAC/window.c \
42    src/libFLAC/ogg_decoder_aspect.c \
43    src/libFLAC/ogg_encoder_aspect.c \
44    src/libFLAC/ogg_helper.c \
45    src/libFLAC/ogg_mapping.c
46
47LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
48
49include $(BUILD_STATIC_LIBRARY)
50