Android.mk 2.1 KB
Newer Older
Z
Zhang Rui 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
#
# 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)
22
LOCAL_CFLAGS += -std=c99
Z
Zhang Rui 已提交
23
LOCAL_LDLIBS += -llog -landroid
Z
Zhang Rui 已提交
24

25 26
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_C_INCLUDES += $(MY_APP_FFMPEG_INCLUDE_PATH)
Z
Zhang Rui 已提交
27
LOCAL_C_INCLUDES += $(MY_APP_JNI_ROOT)
28

Z
Zhang Rui 已提交
29 30 31 32 33 34 35 36
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

37 38
LOCAL_SRC_FILES += ffmpeg/ijksdl_vout_overlay_ffmpeg.c

Z
Zhang Rui 已提交
39 40 41 42 43 44 45 46 47
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

Z
Zhang Rui 已提交
48
LOCAL_SRC_FILES += android/android_audiotrack.c
49
LOCAL_SRC_FILES += android/android_nativewindow.c
Z
Zhang Rui 已提交
50 51 52 53 54 55
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
Z
Zhang Rui 已提交
56
LOCAL_STATIC_LIBRARIES := cpufeatures
Z
Zhang Rui 已提交
57

58
LOCAL_MODULE := ijksdl
Z
Zhang Rui 已提交
59
include $(BUILD_SHARED_LIBRARY)
Z
Zhang Rui 已提交
60 61

$(call import-module,android/cpufeatures)