LOCAL_REQUIRED_MODULES的作用当编译整个android源码时,如果Mms模块在编译路径中(即可以编译打包到system.img下),
则会自动编译SoundRecorder,并且打包到system.img,如果不是编译整个源码,只是mm。则不会编译SoundRecorder生成相应的文件。
如下是Mms中的Android.mk的
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := Mms
# Builds against the public SDK
#LOCAL_SDK_VERSION := current
LOCAL_STATIC_JAVA_LIBRARIES += android-common jsr305
LOCAL_REQUIRED_MODULES := SoundRecorder
//表示该模块需要SoundRecorder模块,在系统编译的时候就会将SoundRecorder放入到system.img中,如果单独编译mm的话就不会关心SoundRecorder
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
# This finds and builds the test apk as well, so a single make does both.
include $(call all-makefiles-under,$(LOCAL_PATH))
阅读(16460) | 评论(0) | 转发(0) |