自定义编译jar包,make编译在system/framework下没有生产目标jar包。
但是进入代码目录,mm编译则会自动生产jar包在system/framework目录下。
现在必须要make的时候就把jar包编到system/framework下。
LOCAL_PATH := $(call my-dir)
# Build the Java library.
# ============================================================
include $(CLEAR_VARS)
LOCAL_MODULE := framework2
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := \
$(call all-subdir-java-files)
include $(BUILD_JAVA_LIBRARY)
# The documentation
# ============================================================
include $(CLEAR_VARS)
LOCAL_MODULE := framework2
LOCAL_DROIDDOC_OPTIONS := framework2
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_SRC_FILES := $(call all-subdir-java-files) $(call all-subdir-html-files)
include $(BUILD_DROIDDOC)
# Install the created library in the right location.
# ============================================================
include $(CLEAR_VARS)
LOCAL_MODULE := framework2.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
# The JNI component
# ============================================================
# Also build all of the sub-targets under this one: the library's
# associated JNI code, and a sample client of the library.
include $(call all-makefiles-under,$(LOCAL_PATH))
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。