# copyright (c) 2013 Zhang Rui # # This file is part of ijkPlayer. # # ijkPlayer is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # ijkPlayer is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with ijkPlayer; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_CFLAGS += -std=c99 LOCAL_LDLIBS += -llog -landroid LOCAL_C_INCLUDES += $(LOCAL_PATH) LOCAL_C_INCLUDES += $(MY_APP_FFMPEG_INCLUDE_PATH) LOCAL_C_INCLUDES += $(MY_APP_JNI_ROOT) LOCAL_SRC_FILES += ijksdl_aout.c LOCAL_SRC_FILES += ijksdl_error.c LOCAL_SRC_FILES += ijksdl_mutex.c LOCAL_SRC_FILES += ijksdl_stdinc.c LOCAL_SRC_FILES += ijksdl_thread.c LOCAL_SRC_FILES += ijksdl_timer.c LOCAL_SRC_FILES += ijksdl_vout.c LOCAL_SRC_FILES += ffmpeg/ijksdl_vout_overlay_ffmpeg.c ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) LOCAL_CFLAGS += -DHAVE_NEON=1 LOCAL_SRC_FILES += ffmpeg/abi_armv7a_neon/image_convert.c LOCAL_SRC_FILES += ffmpeg/abi_armv7a_neon/i420_rgb.S.arm.neon LOCAL_SRC_FILES += ffmpeg/abi_armv7a_neon/i420_rv16.S.arm.neon else LOCAL_SRC_FILES += ffmpeg/abi_all/image_convert.c endif LOCAL_SRC_FILES += android/android_audiotrack.c LOCAL_SRC_FILES += android/android_nativewindow.c LOCAL_SRC_FILES += android/ijksdl_android_jni.c LOCAL_SRC_FILES += android/ijksdl_aout_android_audiotrack.c LOCAL_SRC_FILES += android/ijksdl_vout_android_nativewindow.c LOCAL_SRC_FILES += android/ijksdl_vout_android_surface.c LOCAL_SHARED_LIBRARIES := ffmpeg ijkutil LOCAL_STATIC_LIBRARIES := cpufeatures LOCAL_MODULE := ijksdl include $(BUILD_SHARED_LIBRARY) $(call import-module,android/cpufeatures)