Skip to content

Instantly share code, notes, and snippets.

@moltak
Created August 16, 2014 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moltak/884f5fce61baaf955332 to your computer and use it in GitHub Desktop.
Save moltak/884f5fce61baaf955332 to your computer and use it in GitHub Desktop.
ffmpeg android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := basicplayer
LOCAL_CFLAGS := -DANDROID_NDK
LOCAL_SRC_FILES := BasicPlayer.c Interface.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/ \
$(LOCAL_PATH)/ffmpeg/libavcodec \
$(LOCAL_PATH)/ffmpeg/libavformat \
$(LOCAL_PATH)/ffmpeg/libswscale
LOCAL_STATIC_LIBRARIES := libavformat libavcodec libswscale libavutil cpufeatures
LOCAL_LDLIBS := -L$(LOCAL_PATH)/ffmpeg/android/armv7-a-vfp/lib -lavformat -lavcodec -lswscale -lavutil -lz -ljnigraphics
LOCAL_ARM_MODE := arm
#LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
include $(BUILD_SHARED_LIBRARY)
#$(call import-module,android/cpufeatures)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment