Android.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright (c) 2013 Bilibili
  2. # copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
  3. #
  4. # This file is part of ijkPlayer.
  5. #
  6. # ijkPlayer is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU Lesser General Public
  8. # License as published by the Free Software Foundation; either
  9. # version 2.1 of the License, or (at your option) any later version.
  10. #
  11. # ijkPlayer is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # Lesser General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Lesser General Public
  17. # License along with ijkPlayer; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. LOCAL_PATH := $(call my-dir)
  20. include $(CLEAR_VARS)
  21. LOCAL_CFLAGS += -std=c99
  22. LOCAL_LDLIBS += -llog -landroid -lOpenSLES -lEGL -lGLESv2
  23. LOCAL_C_INCLUDES += $(LOCAL_PATH)
  24. LOCAL_C_INCLUDES += $(realpath $(LOCAL_PATH)/..)
  25. LOCAL_C_INCLUDES += $(MY_APP_FFMPEG_INCLUDE_PATH)
  26. LOCAL_C_INCLUDES += $(realpath $(LOCAL_PATH)/../ijkyuv/include)
  27. LOCAL_C_INCLUDES += $(realpath $(LOCAL_PATH)/../ijkj4a)
  28. LOCAL_SRC_FILES += ijksdl_aout.c
  29. LOCAL_SRC_FILES += ijksdl_audio.c
  30. LOCAL_SRC_FILES += ijksdl_egl.c
  31. LOCAL_SRC_FILES += ijksdl_error.c
  32. LOCAL_SRC_FILES += ijksdl_mutex.c
  33. LOCAL_SRC_FILES += ijksdl_stdinc.c
  34. LOCAL_SRC_FILES += ijksdl_thread.c
  35. LOCAL_SRC_FILES += ijksdl_timer.c
  36. LOCAL_SRC_FILES += ijksdl_vout.c
  37. LOCAL_SRC_FILES += ijksdl_extra_log.c
  38. LOCAL_SRC_FILES += gles2/color.c
  39. LOCAL_SRC_FILES += gles2/common.c
  40. LOCAL_SRC_FILES += gles2/renderer.c
  41. LOCAL_SRC_FILES += gles2/renderer_rgb.c
  42. LOCAL_SRC_FILES += gles2/renderer_yuv420p.c
  43. LOCAL_SRC_FILES += gles2/renderer_yuv444p10le.c
  44. LOCAL_SRC_FILES += gles2/shader.c
  45. LOCAL_SRC_FILES += gles2/fsh/rgb.fsh.c
  46. LOCAL_SRC_FILES += gles2/fsh/yuv420p.fsh.c
  47. LOCAL_SRC_FILES += gles2/fsh/yuv444p10le.fsh.c
  48. LOCAL_SRC_FILES += gles2/vsh/mvp.vsh.c
  49. LOCAL_SRC_FILES += dummy/ijksdl_vout_dummy.c
  50. LOCAL_SRC_FILES += ffmpeg/ijksdl_vout_overlay_ffmpeg.c
  51. LOCAL_SRC_FILES += ffmpeg/abi_all/image_convert.c
  52. LOCAL_SRC_FILES += android/android_audiotrack.c
  53. LOCAL_SRC_FILES += android/android_nativewindow.c
  54. LOCAL_SRC_FILES += android/ijksdl_android_jni.c
  55. LOCAL_SRC_FILES += android/ijksdl_aout_android_audiotrack.c
  56. LOCAL_SRC_FILES += android/ijksdl_aout_android_opensles.c
  57. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediacodec_dummy.c
  58. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediacodec_internal.c
  59. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediacodec_java.c
  60. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediacodec.c
  61. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediadef.c
  62. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediaformat_java.c
  63. LOCAL_SRC_FILES += android/ijksdl_codec_android_mediaformat.c
  64. LOCAL_SRC_FILES += android/ijksdl_vout_android_nativewindow.c
  65. LOCAL_SRC_FILES += android/ijksdl_vout_android_surface.c
  66. LOCAL_SRC_FILES += android/ijksdl_vout_overlay_android_mediacodec.c
  67. LOCAL_SHARED_LIBRARIES := ijkffmpeg
  68. LOCAL_STATIC_LIBRARIES := cpufeatures yuv_static ijkj4a
  69. LOCAL_MODULE := ijksdl
  70. include $(BUILD_SHARED_LIBRARY)
  71. $(call import-module,android/cpufeatures)