android 工程源码下编译 Android.mk写法

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := option
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SDK_VERSION := current

LOCAL_PACKAGE_NAME := ChangeInputMethod

LOCAL_CERTIFICATE := platform


include $(BUILD_PACKAGE)
######################################
include $(CLEAR_VARS)

include $(BUILD_MULTI_PREBUILT)


/*************************************************************************/

包含库时要加库名:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := option
LOCAL_STATIC_JAVA_LIBRARIES := libanalytics \
                                    libjcifs
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SDK_VERSION := current
LOCAL_PACKAGE_NAME := ChangeInputMethod

LOCAL_CERTIFICATE := platform

include $(BUILD_PACKAGE)
######################################
include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :=
libanalytics:Analytics_Android_SDK_2.0.jar\
                            libjcifs:jcifs-1.3.15.jar

include $(BUILD_MULTI_PREBUILT)


参考:http://www.360doc.com/content/11/0601/11/474846_120905876.shtml

你可能感兴趣的:(android)