platform_build_blueprint/proptools
Cole Faust c472e38ec1
Add PostProcessors to configurable properties
Some module types currently evaluate configurable properties in load
hooks, modify the results, and pass them onto properties of other
modules. Evaluating configurable properties in load hooks is
problematic, it happens so early that we can't decide the configuration
beforehand.

Add a "post processors" mechanism to configurable properties where
the result of evaluating the property will be passed through a post
processing function before being returned from Get(). This essentially
allows you to modify the property without evaluating it.

Bug: 362579941
Test: m nothing --no-skip-soong-tests
Change-Id: Ibddb3f14b3433364ba474b964c701e8915d4dc85
2024-10-24 19:18:21 +02:00
..
clone.go Refactor selects 2024-04-29 13:23:30 -07:00
clone_test.go Fix TestCloneProperties for go 1.21 2023-11-08 22:07:58 -08:00
configurable.go Add PostProcessors to configurable properties 2024-10-24 19:18:21 +02:00
configurable_test.go Add PostProcessors to configurable properties 2024-10-24 19:18:21 +02:00
escape.go Use maps and slices packages 2024-04-01 15:54:22 -07:00
escape_test.go Use maps and slices packages 2024-04-01 15:54:22 -07:00
extend.go Separate blueprint parsing and evaluating 2024-10-24 19:18:21 +02:00
extend_test.go Add PostProcessors to configurable properties 2024-10-24 19:18:21 +02:00
filter.go Don't recurse into configurable properties in filterPropertyStructFields 2024-03-26 16:46:48 -07:00
filter_test.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
hash_provider.go Use FNV instead of maphash as the hasher for soong. 2024-05-29 22:03:29 +00:00
hash_provider_test.go Use FNV instead of maphash as the hasher for soong. 2024-05-29 22:03:29 +00:00
proptools.go Support generating docs for Configurable properties 2024-05-06 15:14:17 -07:00
proptools_test.go Select statements 2024-03-06 15:00:39 -08:00
tag.go Select statements 2024-03-06 15:00:39 -08:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Fix bugs when appending selects 2024-04-25 15:38:56 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go Add PostProcessors to configurable properties 2024-10-24 19:18:21 +02:00
unpack_test.go Add PostProcessors to configurable properties 2024-10-24 19:18:21 +02:00
utils.go Need to catch the errors when closing and flushing. 2024-05-24 21:37:32 +00:00