platform_build_soong/mk2rbc
Cole Faust f035d405d8 Support converting simple $(eval) expressions
While supporting $(eval) in the general case is
impossible, as it would require emitting code at
runtime, it is possible to handle some special cases
that are common throughout the code base.

Specifically, an assignement expression (where the
left hand side is constant) can be converted without
needing to evaluate strings as code, as its whole
right hand side is treated as one string.

However, this eval with an assignemnt can only be
used as a statement, not an expression. So it requires
the eval to be either a top-level expression, or nested
within other expressions that can be converted to
statements such as $(foreach) or $(if).

Bug: 226974242
Test: go test
Change-Id: Ifc52ef9ab7d62a69251918fcde5463f80a98a542
2022-03-31 12:44:59 -07:00
..
cmd Remove --root, require the cwd to be the root 2022-02-07 11:45:01 -08:00
test Share version settings with product config makefile. 2021-09-13 09:23:05 -07:00
Android.bp Support passing input variables to the product configuration 2021-12-02 16:19:19 -08:00
android_products.go AndroidProducts.mk file reader 2021-07-12 09:40:18 -07:00
android_products_test.go AndroidProducts.mk file reader 2021-07-12 09:40:18 -07:00
config_variables.go Config variables reader 2021-07-12 09:40:18 -07:00
config_variables_test.go Config variables reader 2021-07-12 09:40:18 -07:00
expr.go Support converting simple $(eval) expressions 2022-03-31 12:44:59 -07:00
find_mockfs.go Allow dynamically calculated inherit-product path 2021-08-02 14:35:45 -07:00
mk2rbc.go Support converting simple $(eval) expressions 2022-03-31 12:44:59 -07:00
mk2rbc_test.go Support converting simple $(eval) expressions 2022-03-31 12:44:59 -07:00
node.go Support converting simple $(eval) expressions 2022-03-31 12:44:59 -07:00
soong_variables.go Soong variables reader 2021-07-12 09:40:18 -07:00
soong_variables_test.go Soong variables reader 2021-07-12 09:40:18 -07:00
TODO Product config makefiles to Starlark converter 2021-07-14 09:51:10 -07:00
types.go Make a pass over our codebase cleaning up non-precise / non-inclusive language. 2021-10-28 10:32:07 -07:00
variable.go Replace $(call my-dir) with a string literal 2022-03-18 14:05:06 -07:00