On Mar 22, 2:32 am, Aditya Mertia <aditya.mer...@gmail.com> wrote:
> I want to know how to compile dalvik vm separately in the android
> build process. Basically are there any file modifications with which i
> can decouple other modules from the compilation process and generate
> only dalvik vm libraries? I would like to link the dalvik libraries
> later on separately into another stack.

There are essentially two pieces you have to deal with:

(1) the Dalvik runtime
(2) the Dalvik core libraries

The runtime has relatively few dependencies within the Android source
tree (e.g. it needs libcutils).  The core libs have a few more
(expat).  Some of these can be satisfied with host libs (assuming you
have standard bits like zlib), but in general you're going to need a
few bits of Android.

Recent versions of Android (Gingerbread+) have some WITH_HOST_DALVIK
stuff in the makefiles.  That's used to build Dalvik on the desktop,
where it's used as part of the build process for production builds
(converting .dex to .odex).  If you search around for that and things
like BUILD_HOST_STATIC_LIBRARY you should get a sense for what needs
to be built.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to