Android.mk & Android.bp

147 views
Skip to first unread message

alisams...@gmail.com

unread,
Oct 2, 2020, 8:45:12 PM10/2/20
to Android Building
Hi All,

I am not sure how to tackle this issue. I am currently working on two branches for two different platforms. Some of the code on these branches is different but 99% is same. What I intend to do is make them merge on singlebranch the problem I have is

  1. One branch uses Android.bp and other uses Android.mk
  2. I want to use Android.bp when building for Android 8 and Android.mk when building for Android 5
  3. Not sure how to tackle this issue.
Would be grateful if someone can shed somelight of how to make this process conditional.

I have tried to convert Android.bp to Android.mk but have ran into issues due to dependencies as other repo's are using Android.bp so this is not an option. For Android 8 i can but if else in a make file to say this but in Android 5 how to I say dont use Android.bp for building or will Android 5 not pick up Android.bp file

Regards

Ali

Michael McElroy

unread,
Oct 5, 2020, 10:54:11 AM10/5/20
to android-...@googlegroups.com
I would not do this. You are not going to save any disk space. Git works on blobs. If the same blob is on multiple different branches, there is only one copy of it in git.

Mike

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/c89163c3-291f-43b2-b46b-33cdfbc331f1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages