Soong: remove libbase dependency

The updated API lib no longer depends on libbase, thus the aconfig flag lib does not need to depend on libbase either.

Bug: b/321077378
Test: m and avd
Ignore-AOSP-First: will fix any incompatibilities caused by this change in git main first, and then cherry pick it back to aosp

Change-Id: Ib27ee15e1f3a983686fde6bbf6c9df9afa4781eb
This commit is contained in:
Dennis Shen
2024-06-06 13:51:00 +00:00
committed by Ted Bauer
parent 68bea7c213
commit 7c20f4bae2

View File

@@ -34,7 +34,6 @@ var ccDeclarationsTag = ccDeclarationsTagType{}
const baseLibDep = "server_configurable_flags"
const libBaseDep = "libbase"
const libLogDep = "liblog"
const libAconfigStorageReadApiCcDep = "libaconfig_storage_read_api_cc"
@@ -87,14 +86,10 @@ func (this *CcAconfigLibraryCallbacks) GeneratorDeps(ctx cc.DepsContext, deps cc
// Add a dependency for the aconfig flags base library if it is not forced read only
if mode != "force-read-only" {
deps.SharedLibs = append(deps.SharedLibs, baseLibDep)
deps.SharedLibs = append(deps.SharedLibs, libAconfigStorageReadApiCcDep)
deps.SharedLibs = append(deps.SharedLibs, libLogDep)
}
// TODO: after storage migration is over, don't add these in force-read-only-mode.
deps.SharedLibs = append(deps.SharedLibs, libAconfigStorageReadApiCcDep)
deps.SharedLibs = append(deps.SharedLibs, libBaseDep)
deps.SharedLibs = append(deps.SharedLibs, libLogDep)
// TODO: It'd be really nice if we could reexport this library and not make everyone do it.
return deps