Allow cc modules to pull in rust includes.
Make sure LinkabeInterfaces can export include dirs to cc modules. This fixes the Rust implementation and makes sure these are pulled in for cc modules. Bug: 144052093 Test: cc module depending on a rust library includes dirs correctly. Change-Id: I6b5d5e6ab6afb507178b4f2cbdc45f01031dbfe4
This commit is contained in:
@@ -78,6 +78,7 @@ type libraryDecorator struct {
|
||||
MutatedProperties LibraryMutatedProperties
|
||||
distFile android.OptionalPath
|
||||
unstrippedOutputFile android.Path
|
||||
includeDirs android.Paths
|
||||
}
|
||||
|
||||
type libraryInterface interface {
|
||||
@@ -311,6 +312,13 @@ func (library *libraryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
|
||||
|
||||
return deps
|
||||
}
|
||||
func (library *libraryDecorator) compilerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||
flags = library.baseCompiler.compilerFlags(ctx, flags)
|
||||
if library.shared() || library.static() {
|
||||
library.includeDirs = append(library.includeDirs, android.PathsForModuleSrc(ctx, library.Properties.Include_dirs)...)
|
||||
}
|
||||
return flags
|
||||
}
|
||||
|
||||
func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) android.Path {
|
||||
var outputFile android.WritablePath
|
||||
|
Reference in New Issue
Block a user