Hi,

Thanks for the info , that helped for the multiple definition errors with 
regards to the modules .

I added something like this in the beginning of the Android.bp file :

soong_namespace {
}

Though the multiple definition issues is no longer seen* but later the 
build fails with ninja errors stating multiple rules for same binary.*

Something like :
ninja: error: out/soong/build.ninja:455718: multiple rules generate 
out/soong/host/linux-x86/nativetest64/art_dex2oat_tests/dex2oat_image_test 
[-w dupbuild=err] .

So I am not sure even if soong_namespace works with this situation

Regards,
Priyanka

On Tuesday, May 22, 2018 at 11:24:00 PM UTC+5:30, Wesolowski, Krzysztof 
wrote:
>
> If you are only after avoiding module name clashes you can look at soong 
> namespaces
>
> BR, K
>
> Get Outlook for Android
>
> ------------------------------
> *From:* [email protected] <javascript:> <
> [email protected] <javascript:>> on behalf of Priyanka Bose <
> [email protected] <javascript:>>
> *Sent:* Tuesday, May 22, 2018 12:08:02 PM
> *To:* Android Building
> *Subject:* [android-building] Building vendor variants of a module on 
> Android P 
>  
> Hi, 
>
> We are using the Android P preview release where we see that soong build 
> system has been changed to no longer depend on subdirs , 
> and as I understand it will include all the Android.bp files from the root 
> directory in the Android.bp list.
> Actually we are working on a vendor variant of  libart.so and till lately 
> we could use the conditional environment variable setting to check which 
> source code to be built.
> Thus excluding the Android.bp files for the core variant . 
> For eg: we have a Module A in both the Android.bp files  located in 
> different folders for Core and our vendor variant.
> We used to read which variant to be built/enabled with an environment 
> variable setting and include those Android.bp for the variant folder .
>
> But with the latest master of Android P , this seems to be not possible 
> and we end up in multiple definitions since we have the similar module 
> names in the Android.bp files for
> both core and vendor variants.
> I see there is a new feature called VNDK , i tried to use it with "vendor: 
> true" in Android.bp file but that seems to also not help me.
>
> Can you let me know if an VNDK is an option we can use for this or any 
> suggestions ?
>
> Regards,
> Priyanka
>
> -- 
> -- 
> You received this message because you are subscribed to the "Android 
> Building" mailing list.
> To post to this group, send email to [email protected] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en 
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fandroid-building%3Fhl%3Den&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7Cdf682bcc30614cd7219f08d5bfee5eb9%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C636625952871657731&sdata=hbTTx27R2I5fDIBYzBuFdOc1U1%2BcM%2B9nmJJ0aQD4syE%3D&reserved=0>
>
> --- 
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout 
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7Cdf682bcc30614cd7219f08d5bfee5eb9%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C636625952871657731&sdata=BXfs92fGtljNn95HJwx03SetwKkVSIptT%2BZjTX3CqCc%3D&reserved=0>
> .
>

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to