提交 8b2dc8de 编写于 作者: Z Zhang Rui

ijkplayer: make ffplay static lib

上级 da050c22
#
# 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)
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 += ff_cmdutils.c
LOCAL_SRC_FILES += ff_ffplay.c
LOCAL_STATIC_LIBRARIES := ijksdl
LOCAL_MODULE := ffplay
include $(BUILD_STATIC_LIBRARY)
...@@ -27,12 +27,10 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH) ...@@ -27,12 +27,10 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_C_INCLUDES += $(MY_APP_FFMPEG_INCLUDE_PATH) LOCAL_C_INCLUDES += $(MY_APP_FFMPEG_INCLUDE_PATH)
LOCAL_C_INCLUDES += $(MY_APP_JNI_ROOT) LOCAL_C_INCLUDES += $(MY_APP_JNI_ROOT)
LOCAL_SRC_FILES += ff_cmdutils.c LOCAL_SRC_FILES += ijkplayer_jni.c
LOCAL_SRC_FILES += ff_ffplay.c LOCAL_SRC_FILES += ijkplayer_android.c
LOCAL_SRC_FILES += android/ijkplayer.c
LOCAL_SRC_FILES += android/ijkplayer_jni.c
LOCAL_STATIC_LIBRARIES := ijksdl LOCAL_STATIC_LIBRARIES := ijksdl ijksdl_android ffplay
LOCAL_SHARED_LIBRARIES := ffmpeg ijkutil LOCAL_SHARED_LIBRARIES := ffmpeg ijkutil
LOCAL_MODULE := ijkplayer LOCAL_MODULE := ijkplayer
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#include "ijkplayer_android.h" #include "ijkplayer_android.h"
#include <assert.h> #include <assert.h>
#include "../ijkerror.h" #include "ffplay/ijkerror.h"
#include "../ff_ffplay.h" #include "ffplay/ff_ffplay.h"
#define MPST_CHECK_NOT_RET_INT(real, expected, errcode) \ #define MPST_CHECK_NOT_RET_INT(real, expected, errcode) \
do { \ do { \
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
#include <string.h> #include <string.h>
#include <pthread.h> #include <pthread.h>
#include <jni.h> #include <jni.h>
#include "ijksdl/ijksdl.h" #include "ijksdl_android/ijksdl_android.h"
#include "ijkutil/ijkutil.h" #include "ijkutil/ijkutil.h"
#include "../ijkerror.h" #include "ffplay/ijkerror.h"
#include "ijkplayer_android.h" #include "ijkplayer_android.h"
#define JNI_MODULE_PACKAGE "tv/danmaku/ijk/media/player" #define JNI_MODULE_PACKAGE "tv/danmaku/ijk/media/player"
......
...@@ -35,13 +35,5 @@ LOCAL_SRC_FILES += ijksdl_timer.c ...@@ -35,13 +35,5 @@ LOCAL_SRC_FILES += ijksdl_timer.c
LOCAL_SRC_FILES += ijksdl_vout.c LOCAL_SRC_FILES += ijksdl_vout.c
LOCAL_SRC_FILES += ijksdl_vout_overlay_ffmpeg.c LOCAL_SRC_FILES += ijksdl_vout_overlay_ffmpeg.c
LOCAL_SRC_FILES += android/ijksdl_aout_android_audiotrack.c
LOCAL_SRC_FILES += android/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_MODULE := ijksdl LOCAL_MODULE := ijksdl
include $(BUILD_STATIC_LIBRARY) include $(BUILD_STATIC_LIBRARY)
...@@ -34,9 +34,4 @@ ...@@ -34,9 +34,4 @@
#include "ijksdl_vout.h" #include "ijksdl_vout.h"
#include "ijksdl_vout_overlay_ffmpeg.h" #include "ijksdl_vout_overlay_ffmpeg.h"
#include "android/ijksdl_aout_android_audiotrack.h"
#include "android/ijksdl_vout_android_nativewindow.h"
#include "android/ijksdl_vout_android_surface.h"
#endif #endif
# 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)
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_android_audiotrack.c
LOCAL_SRC_FILES += android_audiotrack.c
LOCAL_SRC_FILES += ijksdl_vout_android_nativewindow.c
LOCAL_SRC_FILES += ijksdl_vout_android_surface.c
LOCAL_MODULE := ijksdl_android
include $(BUILD_STATIC_LIBRARY)
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include <stdint.h> #include <stdint.h>
#include <jni.h> #include <jni.h>
#include "../ijksdl_audio.h" #include "ijksdl/ijksdl_audio.h"
#include "../ijksdl_aout.h" #include "ijksdl/ijksdl_aout.h"
typedef struct SDL_AndroidAudioTrack_Spec { typedef struct SDL_AndroidAudioTrack_Spec {
enum StreamType { enum StreamType {
......
/*****************************************************************************
* ijksdl_android.h
*****************************************************************************
*
* 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
*/
#ifndef IJKSDL__IJKSDL_ANDROID_H
#define IJKSDL__IJKSDL_ANDROID_H
#include "ijksdl/ijksdl.h"
#include "ijksdl_aout_android_audiotrack.h"
#include "ijksdl_vout_android_nativewindow.h"
#include "ijksdl_vout_android_surface.h"
#endif
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include "ijkutil/ijkutil.h" #include "ijkutil/ijkutil.h"
#include "../ijksdl_thread.h" #include "ijksdl/ijksdl_thread.h"
#include "../ijksdl_aout_internal.h" #include "ijksdl/ijksdl_aout_internal.h"
#include "android_audiotrack.h" #include "android_audiotrack.h"
typedef struct SDL_Aout_Opaque { typedef struct SDL_Aout_Opaque {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define IJKSDL__IJKSDL_AOUT_ANDROID_AUDIOTRACK_H #define IJKSDL__IJKSDL_AOUT_ANDROID_AUDIOTRACK_H
#include <jni.h> #include <jni.h>
#include "../ijksdl_aout.h" #include "ijksdl/ijksdl_aout.h"
void SDL_Init_AoutAndroid(JNIEnv *env); void SDL_Init_AoutAndroid(JNIEnv *env);
SDL_Aout *SDL_AoutAndroid_CreateForAudioTrack(JavaVM* jvm); SDL_Aout *SDL_AoutAndroid_CreateForAudioTrack(JavaVM* jvm);
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
#include <assert.h> #include <assert.h>
#include <android/native_window.h> #include <android/native_window.h>
#include "ijkutil/ijkutil.h" #include "ijkutil/ijkutil.h"
#include "../ijksdl_ffinc.h" #include "ijksdl/ijksdl_ffinc.h"
#include "../ijksdl_vout.h" #include "ijksdl/ijksdl_vout.h"
#include "../ijksdl_vout_internal.h" #include "ijksdl/ijksdl_vout_internal.h"
typedef struct SDL_VoutSurface_Opaque { typedef struct SDL_VoutSurface_Opaque {
SDL_Vout *vout; SDL_Vout *vout;
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
#ifndef IJKSDL__IJKSDL_VOUT_ANDROID_NATIVEWINDOW_H #ifndef IJKSDL__IJKSDL_VOUT_ANDROID_NATIVEWINDOW_H
#define IJKSDL__IJKSDL_VOUT_ANDROID_NATIVEWINDOW_H #define IJKSDL__IJKSDL_VOUT_ANDROID_NATIVEWINDOW_H
#include "../ijksdl_stdinc.h" #include "ijksdl/ijksdl_stdinc.h"
#include "../ijksdl_vout.h" #include "ijksdl/ijksdl_vout.h"
typedef struct ANativeWindow ANativeWindow; typedef struct ANativeWindow ANativeWindow;
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#define IJKSDL__IJKSDL_VOUT_ANDROID_SURFACE_H #define IJKSDL__IJKSDL_VOUT_ANDROID_SURFACE_H
#include <jni.h> #include <jni.h>
#include "../ijksdl_stdinc.h" #include "ijksdl/ijksdl_stdinc.h"
#include "../ijksdl_vout.h" #include "ijksdl/ijksdl_vout.h"
SDL_Vout *SDL_VoutAndroid_CreateForAndroidSurface(); SDL_Vout *SDL_VoutAndroid_CreateForAndroidSurface();
void SDL_VoutAndroid_SetAndroidSurface(SDL_Vout *vout, JNIEnv *env, jobject android_surface); void SDL_VoutAndroid_SetAndroidSurface(SDL_Vout *vout, JNIEnv *env, jobject android_surface);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册