Hi all,

I am trying to add an external static java library in to
frameworks/base/service but i getting compilation errors

this is how i am trying to add

my library is foo.jar and it is places in external/foo


LOCAL_PATH:= $(call my-dir)

# the library
# ============================================================
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
            $(call all-subdir-java-files) \
            com/android/server/EventLogTags.logtags \
            com/android/server/am/EventLogTags.logtags

LOCAL_JAVA_LIBRARIES := android.policy
LOCAL_STATIC_JAVA_LIBRARIES := foo

LOCAL_MODULE:= services

LOCAL_NO_EMMA_INSTRUMENT := true
LOCAL_NO_EMMA_COMPILE := true

include $(BUILD_JAVA_LIBRARY)
include $(BUILD_DROIDDOC)



and this is my external/foo/Android.mk

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

LOCAL_MODULE := foo
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := foo.jar
# This will install the file in /system/framework
LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := foo:foo.jar
include $(BUILD_MULTI_PREBUILT)

can you guys please help me out

LG

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to