Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3031c5c authored by Ted Bauer's avatar Ted Bauer
Browse files

Add new storage deps in forced read-only mode

Bug: 328444881
Test: m
Change-Id: I26d5d5c96414a62f2f83eb4d725e69cea61214da
parent 32101942
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -88,10 +88,13 @@ func (this *CcAconfigLibraryCallbacks) GeneratorDeps(ctx cc.DepsContext, deps cc
	if mode != "force-read-only" {
		deps.SharedLibs = append(deps.SharedLibs, baseLibDep)

	}

	// 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, libLogDep)
	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
+16 −0
Original line number Diff line number Diff line
@@ -249,6 +249,22 @@ func TestForceReadOnly(t *testing.T) {
				aconfig_declarations: "my_aconfig_declarations",
				mode: "force-read-only",
			}


			cc_library {
    		                name: "libbase",
    		                srcs: ["libbase.cc"],
			}

			cc_library {
    		                name: "liblog",
    		                srcs: ["liblog.cc"],
			}

			cc_library {
    		                name: "libaconfig_storage_read_api_cc",
    		                srcs: ["libaconfig_storage_read_api_cc.cc"],
			}
		`))

	module := result.ModuleForTests("my_cc_aconfig_library", "android_arm64_armv8-a_shared").Module()