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

Commit 1175c057 authored by Yu Liu's avatar Yu Liu
Browse files

Filter out headers generated by bazel in snapshot.

Bug: 242220039
Test: Manually verified that mixed build works
Change-Id: I3daf0b8a7deab275eb52a1c5e30724fda433461d
parent c2cb9176
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -771,6 +771,12 @@ func GlobHeadersForSnapshot(ctx android.ModuleContext, paths android.Paths) andr
		if strings.HasPrefix(dir, android.PathForOutput(ctx).String()) {
			continue
		}

		// Filter out the generated headers from bazel.
		if strings.HasPrefix(dir, android.PathForBazelOut(ctx, "bazel-out").String()) {
			continue
		}

		// libeigen wrongly exports the root directory "external/eigen". But only two
		// subdirectories "Eigen" and "unsupported" contain exported header files. Even worse
		// some of them have no extension. So we need special treatment for libeigen in order