Hello everybody.
For device manufacturers which has 10+ projects running
simultaneously , it is important to compile all the projects rapidly
in the same copy of source tree. These projects often have following
things in common:
* Some applications of them may have different resources: layouts,
strings etc.
* Some applications of them may be slightly different in some .java
source files.
* The framework layer implementation could also be slightly different
in both java and resource files.
* Every project has its unique thirdparty applications, resources like
ringtones, wallpapers which are dedicated to certain carrier.

We are trying to figure out a way to compile such projects
independently and cleanly in the same copy of source code, or we will
end up with chaos. Here is some thoughts of mine:
* I find PRODUCT_PACKAGE_OVERLAYS may be useful for our situation. But
it is only for resources, isn't it?
* For java source files, maybe we can change LOCAL_SRC_FILES in
Android.mk like this:
if project a
LOCAL_SRC_FILES += a/file.java
else if project b
LOCAL_SRC_FILES += b/file.java
endif
But I think this is sort of ugly. Is there any better way?
* What about assets? I don't find a way to override default asset
files.

Would you please share your experience or opinion? Thank you.

Best Regards,
Alvin

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

Reply via email to