Merge "Soong: Add synopsis to several modules under the cc package."
This commit is contained in:
@@ -189,6 +189,14 @@ func NewLLndkStubLibrary() *Module {
|
|||||||
return module
|
return module
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// llndk_library creates a stub llndk shared library based on the provided
|
||||||
|
// version file. Example:
|
||||||
|
//
|
||||||
|
// llndk_library {
|
||||||
|
// name: "libfoo",
|
||||||
|
// symbol_file: "libfoo.map.txt",
|
||||||
|
// export_include_dirs: ["include_vndk"],
|
||||||
|
// }
|
||||||
func LlndkLibraryFactory() android.Module {
|
func LlndkLibraryFactory() android.Module {
|
||||||
module := NewLLndkStubLibrary()
|
module := NewLLndkStubLibrary()
|
||||||
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
|
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
|
||||||
@@ -203,6 +211,8 @@ func (headers *llndkHeadersDecorator) Name(name string) string {
|
|||||||
return name + llndkHeadersSuffix
|
return name + llndkHeadersSuffix
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// llndk_headers contains a set of c/c++ llndk headers files which are imported
|
||||||
|
// by other soongs cc modules.
|
||||||
func llndkHeadersFactory() android.Module {
|
func llndkHeadersFactory() android.Module {
|
||||||
module, library := NewLibrary(android.DeviceSupported)
|
module, library := NewLibrary(android.DeviceSupported)
|
||||||
library.HeaderOnly()
|
library.HeaderOnly()
|
||||||
|
@@ -48,6 +48,9 @@ func (library *toolchainLibraryDecorator) linkerProps() []interface{} {
|
|||||||
return append(props, &library.Properties)
|
return append(props, &library.Properties)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// toolchain_library is used internally by the build tool to link the specified
|
||||||
|
// static library in src property to the device libraries that are shipped with
|
||||||
|
// gcc.
|
||||||
func ToolchainLibraryFactory() android.Module {
|
func ToolchainLibraryFactory() android.Module {
|
||||||
module, library := NewLibrary(android.HostAndDeviceSupported)
|
module, library := NewLibrary(android.HostAndDeviceSupported)
|
||||||
library.BuildOnlyStatic()
|
library.BuildOnlyStatic()
|
||||||
|
@@ -122,6 +122,15 @@ func (stub *vendorPublicLibraryStubDecorator) link(ctx ModuleContext, flags Flag
|
|||||||
return stub.libraryDecorator.link(ctx, flags, deps, objs)
|
return stub.libraryDecorator.link(ctx, flags, deps, objs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// vendor_public_library creates a stub shared library for a vendor public
|
||||||
|
// library. This stub library is a build-time only artifact that provides
|
||||||
|
// symbols that are exposed from a vendor public library. Example:
|
||||||
|
//
|
||||||
|
// vendor_public_library {
|
||||||
|
// name: "libfoo",
|
||||||
|
// symbol_file: "libfoo.map.txt",
|
||||||
|
// export_public_headers: ["libfoo_headers"],
|
||||||
|
// }
|
||||||
func vendorPublicLibraryFactory() android.Module {
|
func vendorPublicLibraryFactory() android.Module {
|
||||||
module, library := NewLibrary(android.DeviceSupported)
|
module, library := NewLibrary(android.DeviceSupported)
|
||||||
library.BuildOnlyShared()
|
library.BuildOnlyShared()
|
||||||
|
Reference in New Issue
Block a user