summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-11-08 12:50:26 -0600
committerKenny Root <kenny@the-b.org>2009-11-08 15:55:44 -0600
commit3c276f4d58833251300b772c184b13c8c6f6a82c (patch)
treef6c6bc3c77cac8cc3e8d87af55bc5b0c75199cae
parentef907fdb8168fa4a208be6f0de01831e0f2c611c (diff)
downloadexternal_flac-3c276f4d58833251300b772c184b13c8c6f6a82c.zip
external_flac-3c276f4d58833251300b772c184b13c8c6f6a82c.tar.gz
external_flac-3c276f4d58833251300b772c184b13c8c6f6a82c.tar.bz2
Add Android-specific makefiles
-rw-r--r--Android.mk4
-rw-r--r--MODULE_LICENSE_BSD_LIKE0
-rw-r--r--config.h135
-rw-r--r--libFLAC/Android.mk32
4 files changed, 171 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..7cbcaaa
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,4 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+include $(LOCAL_PATH)/libFLAC/Android.mk
diff --git a/MODULE_LICENSE_BSD_LIKE b/MODULE_LICENSE_BSD_LIKE
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_BSD_LIKE
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..6827125
--- /dev/null
+++ b/config.h
@@ -0,0 +1,135 @@
+/* config.h. Generated by configure. */
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* define to align allocated memory on 32-byte boundaries */
+#define FLAC__ALIGN_MALLOC_DATA 1
+
+/* define if building for ia32/i386 */
+/* #define FLAC__CPU_IA32 1 */
+
+/* define if building for PowerPC */
+/* #undef FLAC__CPU_PPC */
+
+/* define if building for SPARC */
+/* #undef FLAC__CPU_SPARC */
+
+/* define if you are compiling for PowerPC and have the 'as' assembler */
+/* #undef FLAC__HAS_AS */
+
+/* define if you have docbook-to-man or docbook2man */
+#define FLAC__HAS_DOCBOOK_TO_MAN 1
+
+/* define if you are compiling for PowerPC and have the 'gas' assembler */
+/* #define FLAC__HAS_GAS 0 */
+
+/* define if you are compiling for x86 and have the NASM assembler */
+/* #define FLAC__HAS_NASM 0 */
+
+/* define if you have the ogg library */
+/* #undef FLAC__HAS_OGG */
+
+/* define to disable use of assembly code */
+#define FLAC__NO_ASM 1
+
+/* define if your operating system supports SSE instructions */
+/* #undef FLAC__SSE_OS */
+
+/* define if building for Darwin / MacOS X */
+/* #undef FLAC__SYS_DARWIN */
+
+/* define if building for Linux */
+/* #undef FLAC__SYS_LINUX */
+
+/* define to enable use of 3Dnow! instructions */
+/* #define FLAC__USE_3DNOW 0 */
+
+/* define to enable use of Altivec instructions */
+/* #define FLAC__USE_ALTIVEC 0 */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
+#define HAVE_FSEEKO 1
+
+/* Define to 1 if you have the `getopt_long' function. */
+#define HAVE_GETOPT_LONG 1
+
+/* Define if you have the iconv() function. */
+#define HAVE_ICONV 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+/* #define HAVE_LANGINFO_CODESET 0 */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if the system has the type `socklen_t'. */
+#define HAVE_SOCKLEN_T 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define as const if the declaration of iconv() needs const. */
+#define ICONV_CONST
+
+/* Name of package */
+#define PACKAGE "flac"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* The size of a `void*', as computed by sizeof. */
+#define SIZEOF_VOIDP 4
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "1.2.1"
+
+/* Define to 1 if your processor stores words with the most significant byte
+ first (like Motorola and SPARC, unlike Intel and VAX). */
+/* #undef WORDS_BIGENDIAN */
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#define _FILE_OFFSET_BITS 64
+
+/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
+/* #undef _LARGEFILE_SOURCE */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
diff --git a/libFLAC/Android.mk b/libFLAC/Android.mk
new file mode 100644
index 0000000..bf29efb
--- /dev/null
+++ b/libFLAC/Android.mk
@@ -0,0 +1,32 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ bitmath.c \
+ bitreader.c \
+ cpu.c \
+ crc.c \
+ fixed.c \
+ float.c \
+ format.c \
+ lpc.c \
+ memory.c \
+ stream_decoder.c \
+ window.c
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/include \
+ $(LOCAL_PATH)/.. \
+ $(LOCAL_PATH)/../include
+
+LOCAL_CFLAGS += -DHAVE_CONFIG_H -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY
+LOCAL_CFLAGS += -D_REENTRANT -DPIC -DU_COMMON_IMPLEMENTATION -fPIC
+LOCAL_CFLAGS += -O3 -funroll-loops -finline-functions
+
+LOCAL_LDLIBS += -lm
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_MODULE := libFLAC
+
+include $(BUILD_SHARED_LIBRARY)