Thanks Dan, appreciate the support.
I will explore the namespace options...

On Tuesday, October 5, 2021 at 4:05:18 AM UTC+5:30 Dan Willemsen wrote:

> No, that's not possible, as the installation system still sets up the 
> install rules for every module, so that the user can request a module to be 
> installed even if it isn't in PRODUCT_PACKAGES.
>
> Either have them named differently on the device, or use soong namespaces 
> <https://android.googlesource.com/platform/build/soong/+/master/README.md#namespaces>
>  and 
> the same module name(myBin) so that only one will ever be exported to Make 
> at a time, that can be chosen through PRODUCT_SOONG_NAMESPACES 
> (PRODUCT_PACKAGES would just have myBin in either case).
>
> - Dan
>
> On Mon, Oct 4, 2021 at 12:14 PM Abhayadev S <[email protected]> wrote:
>
>> Hi,
>>
>> usually the name of the installed binary will be same as the module 
>> "name" but can we have 2 cc_binary modules defined to install a binary of 
>> same name but on a conditional PRODUCT_PACKAGES definition?
>>
>> like a/Android.bp will define cc_binary with name : mymodule and it shall 
>> install myBin
>> and b/Android.bp will define cc_binary with name mymodule2 and it shall 
>> install myBin 
>> and this will be controlled by a conditional PRODUCT_PACKAGES definition
>> PRODUCT_PACKAGES += mymodule  OR PRODUCT_PACKAGES += mymodule2
>>
>> this is the install a binary (with same name) from 2 partners but based 
>> on a build condition/rule.
>>
>> regards,
>> abhay
>>
>>
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> 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-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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/697400b2-6362-430e-99f2-9e5bce018996n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/697400b2-6362-430e-99f2-9e5bce018996n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
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-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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/4975d516-791d-4be2-b94f-3e71d09c3d00n%40googlegroups.com.

Reply via email to