'build.prop' has a property for that.
#
# system props for the MM modules
#
media.stagefright.enable-player=true
media.stagefright.enable-meta=false
media.stagefright.enable-scan=false
media.stagefright.enable-http=true
#setprop media.stagefright.enable-player false
can turn off the stagefright and makes media player runs with opencore.
2011-05-24
2011-05-04
android: link third party static libraries with PREBUILT_STATIC_LIBRARY
You have to declare each library as LOCAL_MODULE.
And each LOCAL_SRC_FILES should have only one .a file.
Android.mk:
And link this LOCAL_MODULE using LOCAL_STATIC_LIBRARIES
Android.mk(continue)
include $(CLEAR_VARS)
LOCAL_MODULE := bar
LOCAL_LDLIBS := -llog -ldl
LOCAL_SRC_FILES := bar.c
LOCAL_STATIC_LIBRARIES := foo
include $(BUILD_SHARED_LIBRARY)
Now libbar.so will be built with third party library libfoo.a.
For the details, see ndk docs(ANDROID-MK.html and PREBUILTS.html).
p.s. You can NOT link static library to built a new static library in ndk.
And each LOCAL_SRC_FILES should have only one .a file.
Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := foo
LOCAL_SRC_FILES := libfoo.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_STATIC_LIBRARY)
And link this LOCAL_MODULE using LOCAL_STATIC_LIBRARIES
Android.mk(continue)
include $(CLEAR_VARS)
LOCAL_MODULE := bar
LOCAL_LDLIBS := -llog -ldl
LOCAL_SRC_FILES := bar.c
LOCAL_STATIC_LIBRARIES := foo
include $(BUILD_SHARED_LIBRARY)
Now libbar.so will be built with third party library libfoo.a.
For the details, see ndk docs(ANDROID-MK.html and PREBUILTS.html).
p.s. You can NOT link static library to built a new static library in ndk.
피드 구독하기:
글 (Atom)