We've recently updated our documentation around conditionals (and most use
of make variables fall into the same category):
https://android.googlesource.com/platform/build/soong/+/master/README.md#how-do-i-write-conditionals
tl;dr: we'd prefer you didn't use them, but if you need to, you can via
I have the same question.
I'd like to use product variables like TARGET_PRODUCT in Android.bp.
I searched the whole AOSP tree but still can't find a way to do that.
Sigh,,, Is it possible?
DavidRobin於 2019年7月16日星期二 UTC+8下午11時13分22秒寫道:
>
> Thanks for your reply.
> Our purpose is to generate
Thanks for your reply.
Our purpose is to generate "License checking code" for specific product
build.
So we have a shell script to generate the code based on the PRODUCT_XXX
properties.
Are you implying that Android.bp should only be used in generic (product
independent) modules?
And this kind
Those variables aren't exposed, partially because it becomes very difficult
to understand which pieces of the system are then product-specific vs
generic. Is there a reason why you wouldn't just read the runtime
properties rather than trying to embed those values in code?
- Dan
On Mon, Jul 15,