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

Commit ad1fa142 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Only add SDK file dependencies on device builds am: 300f0388 am: f9f641ec

am: 3ae73c7e

Change-Id: I916f0f5938da25004aa14445891c5753ccfd0ce8
parents 12bd1a2a 3ae73c7e
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -571,6 +571,7 @@ func checkLinkType(ctx android.ModuleContext, from *Module, to *Library, tag dep
func (j *Module) collectDeps(ctx android.ModuleContext) deps {
	var deps deps

	if ctx.Device() {
		sdkDep := decodeSdkDep(ctx, String(j.deviceProperties.Sdk_version))
		if sdkDep.invalidVersion {
			ctx.AddMissingDependencies([]string{sdkDep.module})
@@ -579,6 +580,7 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
			deps.classpath = append(deps.classpath, sdkDep.jar)
			deps.aidlIncludeDirs = append(deps.aidlIncludeDirs, sdkDep.aidl)
		}
	}

	ctx.VisitDirectDeps(func(module android.Module) {
		otherName := ctx.OtherModuleName(module)