parent
d4b5956a81
commit
e882ecde7d
@ -1,37 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
NDK=/home/mn/bin/android-ndk-r15b |
||||
SYSROOT=$NDK/platforms/android-16/arch-arm/ |
||||
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 |
||||
PREFIX=../output |
||||
ADDI_CFLAGS="-marm" |
||||
|
||||
|
||||
function build_ffmpeg |
||||
{ |
||||
./configure \ |
||||
--prefix=$PREFIX \ |
||||
--enable-shared \ |
||||
--enable-small \ |
||||
--disable-static \ |
||||
--disable-doc \ |
||||
--disable-ffmpeg \ |
||||
--disable-ffplay \ |
||||
--disable-ffprobe \ |
||||
--disable-ffserver \ |
||||
--disable-symver \ |
||||
--target-os=linux \ |
||||
--arch=arm \ |
||||
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ |
||||
--enable-cross-compile \ |
||||
--sysroot=$SYSROOT \ |
||||
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \ |
||||
--extra-ldflags="$ADDI_LDFLAGS" \ |
||||
$ADDITIONAL_CONFIGURE_FLAG |
||||
make clean |
||||
make |
||||
make install |
||||
} |
||||
|
||||
cd ffmpeg |
||||
build_ffmpeg |
@ -0,0 +1,21 @@ |
||||
WORKING_DIR := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS) |
||||
|
||||
LOCAL_PATH := $(WORKING_DIR)
|
||||
LOCAL_ARM_MODE := arm
|
||||
LOCAL_MODULE := mp3lame
|
||||
LOCAL_SRC_FILES := mp3lame/bitstream.c mp3lame/encoder.c \
|
||||
mp3lame/fft.c mp3lame/gain_analysis.c mp3lame/id3tag.c \
|
||||
mp3lame/lame.c mp3lame/newmdct.c mp3lame/quantize.c \
|
||||
mp3lame/presets.c mp3lame/psymodel.c mp3lame/quantize_pvt.c \
|
||||
mp3lame/reservoir.c mp3lame/set_get.c mp3lame/tables.c \
|
||||
mp3lame/takehiro.c mp3lame/util.c mp3lame/vbrquantize.c \
|
||||
mp3lame/VbrTag.c mp3lame/version.c
|
||||
|
||||
LOCAL_C_INCLUDES := mp3lame
|
||||
LOCAL_LDLIBS := -llog -lz -lm -landroid
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY) |
||||
#include $(BUILD_SHARED_LIBRARY)
|
||||
|
@ -0,0 +1,19 @@ |
||||
WORKING_DIR := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS) |
||||
|
||||
LOCAL_PATH := $(WORKING_DIR)
|
||||
LOCAL_ARM_MODE := arm
|
||||
LOCAL_MODULE := shine
|
||||
LOCAL_SRC_FILES := shine/bitstream.c shine/huffman.c \
|
||||
shine/l3bitstream.c shine/l3loop.c shine/l3mdct.c \
|
||||
shine/l3subband.c shine/layer3.c shine/reservoir.c \
|
||||
shine/tables.c
|
||||
LOCAL_LDLIBS := -llog -lz -lm -landroid
|
||||
|
||||
LOCAL_C_INCLUDES := shine
|
||||
LOCAL_LDLIBS := -llog -lz -lm -landroid
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY) |
||||
#include $(BUILD_SHARED_LIBRARY)
|
||||
|
Loading…
Reference in new issue