diff options
| author | Trevor Radcliffe <tradical@google.com> | 2022-06-08 16:16:31 +0000 |
|---|---|---|
| committer | Trevor Radcliffe <tradical@google.com> | 2022-09-15 17:41:58 +0000 |
| commit | d82e8f68582f21ff6dd0113611526647f9dfb5ca (patch) | |
| tree | aec0d9f47768767168ac15ffabd8713b25a05c0d /sysprop | |
| parent | 2ba6d37e7b3c1fb2fbc22645d31b44d86df7f31c (diff) | |
Delete SyspropMutator (again)
This CL essentially un-reverts aosp/2119952, now that the issue
has been resolved.
Bug: 226199990
Test: m
Change-Id: I3b828eb7f7cf54023c9e1d3229cf1ff7c85ab6dd
Diffstat (limited to 'sysprop')
| -rw-r--r-- | sysprop/sysprop_library.go | 5 | ||||
| -rw-r--r-- | sysprop/sysprop_test.go | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sysprop/sysprop_library.go b/sysprop/sysprop_library.go index 0785f89f0..578dc2b7f 100644 --- a/sysprop/sysprop_library.go +++ b/sysprop/sysprop_library.go @@ -365,7 +365,10 @@ func (m *syspropLibrary) ShouldSupportSdkVersion(ctx android.BaseModuleContext, // sysprop_library creates schematized APIs from sysprop description files (.sysprop). // Both Java and C++ modules can link against sysprop_library, and API stability check // against latest APIs (see build/soong/scripts/freeze-sysprop-api-files.sh) -// is performed. +// is performed. Note that the generated C++ module has its name prefixed with +// `lib`, and it is this module that should be depended on from other C++ +// modules; i.e., if the sysprop_library module is named `foo`, C++ modules +// should depend on `libfoo`. func syspropLibraryFactory() android.Module { m := &syspropLibrary{} diff --git a/sysprop/sysprop_test.go b/sysprop/sysprop_test.go index 88ef61524..80b86e059 100644 --- a/sysprop/sysprop_test.go +++ b/sysprop/sysprop_test.go @@ -209,32 +209,32 @@ func TestSyspropLibrary(t *testing.T) { cc_library { name: "cc-client-platform", srcs: ["d.cpp"], - static_libs: ["sysprop-platform"], + static_libs: ["libsysprop-platform"], } cc_library_static { name: "cc-client-platform-static", srcs: ["d.cpp"], - whole_static_libs: ["sysprop-platform"], + whole_static_libs: ["libsysprop-platform"], } cc_library { name: "cc-client-product", srcs: ["d.cpp"], product_specific: true, - static_libs: ["sysprop-platform-on-product", "sysprop-vendor-on-product"], + static_libs: ["libsysprop-platform-on-product", "libsysprop-vendor-on-product"], } cc_library { name: "cc-client-vendor", srcs: ["d.cpp"], soc_specific: true, - static_libs: ["sysprop-platform", "sysprop-vendor"], + static_libs: ["libsysprop-platform", "libsysprop-vendor"], } cc_binary_host { name: "hostbin", - static_libs: ["sysprop-platform"], + static_libs: ["libsysprop-platform"], } `) |
