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

Commit 821ae8b0 authored by Jiyong Park's avatar Jiyong Park Committed by Automerger Merge Worker
Browse files

Don't allow a lib having stubs to become a member of VNDK am: be024ad6 am: 530ede88

Change-Id: I3ead638642eba82f11138beeeeef958e1cbd1006
parents c7d17a3a 530ede88
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -309,6 +309,10 @@ func processVndkLibrary(mctx android.BottomUpMutatorContext, m *Module) {
		panic(err)
	}

	if m.HasStubsVariants() {
		mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK")
	}

	vndkLibrariesLock.Lock()
	defer vndkLibrariesLock.Unlock()