aboutsummaryrefslogtreecommitdiffstats
path: root/android/ffmpeg.mk
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2013-11-03 00:08:04 +0800
committerSteve Kondik <steve@cyngn.com>2016-02-15 11:28:42 -0500
commitba499596a9e22d9f0dd9356e9a73038a7046c78e (patch)
tree1b6feeaf0e6a43b9789a5fa85a4e53d779b2b0d9 /android/ffmpeg.mk
parent0aa2fbddb19035cd715130bc9b7c643e240ed74e (diff)
downloadandroid_external_ffmpeg-ba499596a9e22d9f0dd9356e9a73038a7046c78e.tar.gz
android_external_ffmpeg-ba499596a9e22d9f0dd9356e9a73038a7046c78e.tar.bz2
android_external_ffmpeg-ba499596a9e22d9f0dd9356e9a73038a7046c78e.zip
Android porting for ffmpeg 2.1 release
Add Android.mk to build ffmpeg libraries with AOSP tree. Based on the nice work of Chia-I Wu (olv): git://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android Tested built OK on Android 4.3 for x86, mips, armv7-a and armv7-a-neon. Change-Id: Id97768f8716f7933078fa0b6c936bd2ae20c090a
Diffstat (limited to 'android/ffmpeg.mk')
-rw-r--r--android/ffmpeg.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/android/ffmpeg.mk b/android/ffmpeg.mk
new file mode 100644
index 0000000000..4a7a67a2c1
--- /dev/null
+++ b/android/ffmpeg.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2013 The Android-x86 Open Source Project
+#
+# Licensed under the GNU General Public License Version 2 or later.
+# You may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.gnu.org/licenses/gpl.html
+#
+
+ifndef FFMPEG_DIR
+FFMPEG_DIR := $(dir $(call my-dir))
+endif
+
+# bionic include must be the first
+LOCAL_C_INCLUDES := \
+ bionic/libc/include \
+ $(FFMPEG_DIR)android/include \
+ $(FFMPEG_DIR) \
+
+LOCAL_CFLAGS := \
+ -DANDROID_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
+ -DTARGET_CONFIG=\"config-$(TARGET_ARCH_VARIANT).h\" \
+ -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC \
+
+LOCAL_ASFLAGS := $(LOCAL_CFLAGS)