Android.mk和库项目

时间:2013-10-28 14:43:27

标签: java android android-source

我有一个应用程序和一个共享库(由Java类和资源组成)。 我正在尝试直接在ROM中编译我的应用程序,我需要编写Android.mk。 然而,它没有按预期工作。

以下是我的两个Android.mk:

库:


LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := SharedLibrary

include $(BUILD_JAVA_LIBRARY)

# additionally, build tests in sub-folders in a separate .apk
include $(call all-makefiles-under,$(LOCAL_PATH))

LOCAL_MODULE_TAGS := optional LOCAL_MODULE := SharedLibrary include $(BUILD_JAVA_LIBRARY) # additionally, build tests in sub-folders in a separate .apk include $(call all-makefiles-under,$(LOCAL_PATH))

应用:

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

LOCAL_JAVA_LIBRAIRIES = SharedLibrary

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

LOCAL_PACKAGE_NAME := Pricing

include $(BUILD_PACKAGE)

# additionally, build tests in sub-folders in a separate .apk
include $(call all-makefiles-under,$(LOCAL_PATH))

我哪里错了?

0 个答案:

没有答案