Merge "Soong: Add synopsis to cc_prebuilt_* modules."
This commit is contained in:
@@ -29,16 +29,20 @@ type prebuiltLinkerInterface interface {
|
|||||||
prebuilt() *android.Prebuilt
|
prebuilt() *android.Prebuilt
|
||||||
}
|
}
|
||||||
|
|
||||||
type prebuiltLinker struct {
|
type prebuiltLinkerProperties struct {
|
||||||
android.Prebuilt
|
|
||||||
|
|
||||||
properties struct {
|
// a prebuilt library or binary. Can reference a genrule module that generates an executable file.
|
||||||
Srcs []string `android:"path,arch_variant"`
|
Srcs []string `android:"path,arch_variant"`
|
||||||
|
|
||||||
// Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined
|
// Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined
|
||||||
// symbols, etc), default true.
|
// symbols, etc), default true.
|
||||||
Check_elf_files *bool
|
Check_elf_files *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type prebuiltLinker struct {
|
||||||
|
android.Prebuilt
|
||||||
|
|
||||||
|
properties prebuiltLinkerProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
|
func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
|
||||||
@@ -112,6 +116,8 @@ func (p *prebuiltLibraryLinker) nativeCoverage() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cc_prebuilt_library_shared installs a precompiled shared library that are
|
||||||
|
// listed in the srcs property in the device's directory.
|
||||||
func prebuiltSharedLibraryFactory() android.Module {
|
func prebuiltSharedLibraryFactory() android.Module {
|
||||||
module, _ := NewPrebuiltSharedLibrary(android.HostAndDeviceSupported)
|
module, _ := NewPrebuiltSharedLibrary(android.HostAndDeviceSupported)
|
||||||
return module.Init()
|
return module.Init()
|
||||||
@@ -137,6 +143,8 @@ func NewPrebuiltSharedLibrary(hod android.HostOrDeviceSupported) (*Module, *libr
|
|||||||
return module, library
|
return module, library
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cc_prebuilt_library_static installs a precompiled static library that are
|
||||||
|
// listed in the srcs property in the device's directory.
|
||||||
func prebuiltStaticLibraryFactory() android.Module {
|
func prebuiltStaticLibraryFactory() android.Module {
|
||||||
module, _ := NewPrebuiltStaticLibrary(android.HostAndDeviceSupported)
|
module, _ := NewPrebuiltStaticLibrary(android.HostAndDeviceSupported)
|
||||||
return module.Init()
|
return module.Init()
|
||||||
@@ -197,6 +205,8 @@ func (p *prebuiltBinaryLinker) link(ctx ModuleContext,
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cc_prebuilt_binary installs a precompiled executable in srcs property in the
|
||||||
|
// device's directory.
|
||||||
func prebuiltBinaryFactory() android.Module {
|
func prebuiltBinaryFactory() android.Module {
|
||||||
module, _ := NewPrebuiltBinary(android.HostAndDeviceSupported)
|
module, _ := NewPrebuiltBinary(android.HostAndDeviceSupported)
|
||||||
return module.Init()
|
return module.Init()
|
||||||
|
Reference in New Issue
Block a user