Monday, November 24, 2014

How to write a make file(Android.mk) for Android Application when you build from Android Source Code?

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 <UR-JAVA-Library>

LOCAL_PACKAGE_NAME := <APP-NAME>

LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)

# Use the following include to make your own test apk.

include $(call all-makefiles-under,$(LOCAL_PATH))

No comments:

Post a Comment