Merge "bp2build: cc_library_headers converter should only include that module type"
This commit is contained in:
@@ -90,16 +90,12 @@ func CcLibraryHeadersBp2Build(ctx android.TopDownMutatorContext) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
lib, ok := module.linker.(*libraryDecorator)
|
if ctx.ModuleType() != "cc_library_headers" {
|
||||||
if !ok {
|
|
||||||
// Not a cc_library module
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !lib.header() {
|
|
||||||
// Not a cc_library_headers module
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lib, _ := module.linker.(*libraryDecorator)
|
||||||
|
|
||||||
// list of directories that will be added to the include path (using -I) for this
|
// list of directories that will be added to the include path (using -I) for this
|
||||||
// module and any module that links against this module.
|
// module and any module that links against this module.
|
||||||
includeDirs := lib.flagExporter.Properties.Export_system_include_dirs
|
includeDirs := lib.flagExporter.Properties.Export_system_include_dirs
|
||||||
|
Reference in New Issue
Block a user