Hi,

I have a framework module which uses the  vcard and calender-common java 
static libraries and  the vcard and calendar modules in my code base 
resides in framework/opt folder.
The framework/base/Android.mk ( in the section where the framework.jar gets 
created) file is modified with the below two changes.

1>. I have updated my own framework aidl file in LOCAL_SRC_FILES list of 
aidl.

2>.And then added the LOCAL_STATIC_JAVA_LIBRARIES (vcard and calender 
common) required to build my framework code as it depends on it.
LOCAL_NO_STANDARD_LIBRARIES := true
LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit ext
*LOCAL_STATIC_JAVA_LIBRARIES := com.android.vcard \*
*                                                    
 calendar-common <-------- my changes*         

LOCAL_MODULE := framework
LOCAL_MODULE_CLASS := JAVA_LIBRARIES

LOCAL_NO_EMMA_INSTRUMENT := true
LOCAL_NO_EMMA_COMPILE := true

# List of classes and interfaces which should be loaded by the Zygote.
LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes

#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt

LOCAL_DX_FLAGS := --core-library

include $(BUILD_JAVA_LIBRARY)

# Make sure that R.java and Manifest.java are built before we build
# the source for this library.
framework_res_R_stamp := \
$(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
$(full_classes_compiled_jar): $(framework_res_R_stamp)

# Make sure that framework-res is installed when framework is.
$(LOCAL_INSTALLED_MODULE): | $(dir 
$(LOCAL_INSTALLED_MODULE))framework-res.apk

framework_built := $(call java-lib-deps,framework)

*RESULT:*
Performing compilation with the above changes throws the below compilation 
error.

Aidl: framework <= 
frameworks/base/voip/java/android/net/sip/ISipSessionListener.aidl
Aidl: framework <= 
frameworks/base/voip/java/android/net/sip/ISipService.aidl
Aidl: framework <= frameworks/base/core/java/android/fm/IFmReceiver.aidl
target Java: com.android.vcard 
(out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes)
Aidl: framework <= frameworks/base/core/java/android/fm/IFmTransmitter.aidl
target Export Resources: calendar-common 
(out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
host SharedLib: libESR_Shared (out/host/linux-x86/obj/lib/libESR_Shared.so)
target SharedLib: libc 
(out/target/product/panda/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
target Symbolic: libz (out/target/product/panda/symbols/system/lib/libz.so)
ERROR: no input files
make[1]: *** 
[out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] 
Error 1
make[1]: *** Deleting file 
`out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory 
`/home/administrator/sj15_sj15pc02u_18.1.11/os/ics'
make: *** [ics_log] Error 2

>From this error it looks like the calender-common & vcard java libraries 
are dependent on framework-res-package-target ( framework/base/res) module. 
And maybe it is expected that I should compile the framework-res-apk first 
before compiling the android.jar. So could someone explain me about the 
build order of android framework modules and is it possible from Android.mk 
to invoke the compilation of framework_res first before compiling 
android.jar ?

Thanks.

-- 
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