platform_build_soong/apex
Jingwen Chen 6817bbb3c8 Introduce BazelStringOrLabelFromProp.
Soong supports string properties, but they are overloaded, and can mean
one of three things:

* path reference
* module reference
* string literal

Bazel has different types: label and string attributes. Thus there needs
to be a way to categorize them correctly in bp2build.

This CL introduces a new function to be used on properties like
apex_key.private_key / apex_key.public_key, as well as
android_app.certificate / apex.certificate.

It is important to disambiguate the prop betenn a string literal
attribute or file/rule target label attribute, so this functions does
just that.  The new attributes are then further handled by their
respective macros (apex_key, android_binary, apex).

Bug: 253557437
Fixes: 253557437
Test: presubmits, new tests

Change-Id: Id8111cdd60d3aabcae7d17fe9da84d0ee3966023
2022-10-20 14:57:37 +00:00
..
Android.bp Export default apex version from updatable_modules.go to Bazel's 2022-08-02 10:11:36 +00:00
androidmk.go Remove obsolete notice property. 2022-07-29 17:54:40 +00:00
apex.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
apex_sdk_member.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
apex_singleton.go Merge "Update error message for new policy." am: bf49705608 am: 775f9e37c7 2021-08-04 10:20:47 +00:00
apex_test.go Merge "Default apex's compile_multilib to "first" in bp2build" 2022-10-17 14:12:29 +00:00
bootclasspath_fragment_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
bp2build.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
builder.go Put base APK when AppSet is included in APEX 2022-09-29 21:30:25 +09:00
classpath_element_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
deapexer.go Consolidate the code to resolve a deapexer module dependency. 2021-09-23 17:19:55 +01:00
key.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
platform_bootclasspath_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
prebuilt.go Add riscv64 support for apex prebuilt 2022-10-13 00:00:11 +08:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
TEST_MAPPING
testing.go Surface Java APIs Used By APK-only Modules. 2022-04-05 21:28:29 +00:00
vndk.go Remove the compat symlinks to ART binaries. 2021-12-14 17:56:26 +00:00
vndk_test.go Remove obsolete notice property. 2022-07-29 17:54:40 +00:00