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

Commit 94b87e17 authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Fix: build error when a lib with stubs is included in an APEX am: 28d395a1 am: 0d29b00d

am: d8d7a761

Change-Id: If950f7444ed36e1e6466a0c0640a0aee51d49536
parents 10c95285 d8d7a761
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -367,6 +367,7 @@ func addDependenciesForNativeModules(ctx android.BottomUpMutatorContext,
		{Mutator: "arch", Variation: arch},
		{Mutator: "image", Variation: "core"},
		{Mutator: "link", Variation: "shared"},
		{Mutator: "version", Variation: ""}, // "" is the non-stub variant
	}, sharedLibTag, native_shared_libs...)

	ctx.AddFarVariationDependencies([]blueprint.Variation{
+10 −2
Original line number Diff line number Diff line
@@ -277,12 +277,20 @@ func TestApexWithStubs(t *testing.T) {
		cc_library {
			name: "mylib3",
			srcs: ["mylib.cpp"],
			shared_libs: ["mylib4"],
			system_shared_libs: [],
			stl: "none",
			stubs: {
				versions: ["10", "11", "12"],
			},
		}

		cc_library {
			name: "mylib4",
			srcs: ["mylib.cpp"],
			system_shared_libs: [],
			stl: "none",
		}
	`)

	apexRule := ctx.ModuleForTests("myapex", "android_common_myapex").Rule("apexRule")