platform_build/common
Youkichi Hosoi cc39735e55 strings.mk: Allow empty RHS values for inputs of collapse-pairs
This CL is to make the function collapse-pairs(), which is applied to
lists of "property=value" pairs, allow empty properties (i.e. lines of
the form "empty.prop=").
Currently, the function only allows empty properties at the end (see
https://android-review.googlesource.com/c/platform/build/+/722908).
So empty properties in the middle result in broken property files (e.g.
"a=b c= d=e" is transformed to "a=b c=d=e", in which the property "c",
which originally has no value, is interpreted as having the value "d=e",
whereas the property "d", which originally has the value "e", is missing
from the resulting property file).
This CL revises the function so as to keep empty properties in the
middle as is (e.g. it returns "a=b c= d=e" for the above example), while
preserving the behavior for well-formed lists like "a=b c= d e = f".

Bug: 152379493
Test: make
Change-Id: I35faeaedc3bc42e56e01201baf7ea6805a610439
Merged-In: I35faeaedc3bc42e56e01201baf7ea6805a610439
(cherry picked from commit f6652f4f18)
2020-04-16 15:45:40 +09:00
..
core.mk Move TOP/TOPDIR to build/make/common/core.mk 2019-08-08 10:58:09 -07:00
json.mk Move dexpreopting to Soong 2018-12-17 13:46:17 -08:00
math.mk Define PRODUCT_PRODUCT_VNDK_VERSION automatically 2020-01-11 12:44:08 +00:00
strings.mk strings.mk: Allow empty RHS values for inputs of collapse-pairs 2020-04-16 15:45:40 +09:00