Merge "Add header_libs to cc_object"
This commit is contained in:
4
cc/cc.go
4
cc/cc.go
@@ -179,6 +179,9 @@ type Flags struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ObjectLinkerProperties struct {
|
type ObjectLinkerProperties struct {
|
||||||
|
// list of modules that should only provide headers for this module.
|
||||||
|
Header_libs []string `android:"arch_variant,variant_prepend"`
|
||||||
|
|
||||||
// names of other cc_object modules to link into this module using partial linking
|
// names of other cc_object modules to link into this module using partial linking
|
||||||
Objs []string `android:"arch_variant"`
|
Objs []string `android:"arch_variant"`
|
||||||
|
|
||||||
@@ -2083,6 +2086,7 @@ func DefaultsFactory(props ...interface{}) android.Module {
|
|||||||
&VendorProperties{},
|
&VendorProperties{},
|
||||||
&BaseCompilerProperties{},
|
&BaseCompilerProperties{},
|
||||||
&BaseLinkerProperties{},
|
&BaseLinkerProperties{},
|
||||||
|
&ObjectLinkerProperties{},
|
||||||
&LibraryProperties{},
|
&LibraryProperties{},
|
||||||
&FlagExporterProperties{},
|
&FlagExporterProperties{},
|
||||||
&BinaryLinkerProperties{},
|
&BinaryLinkerProperties{},
|
||||||
|
@@ -66,6 +66,7 @@ func (object *objectLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
|||||||
deps.LateSharedLibs = append(deps.LateSharedLibs, "libc")
|
deps.LateSharedLibs = append(deps.LateSharedLibs, "libc")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deps.HeaderLibs = append(deps.HeaderLibs, object.Properties.Header_libs...)
|
||||||
deps.ObjFiles = append(deps.ObjFiles, object.Properties.Objs...)
|
deps.ObjFiles = append(deps.ObjFiles, object.Properties.Objs...)
|
||||||
return deps
|
return deps
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user