aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorPatrice Arruda <patricearruda@google.com>2019-04-02 08:20:08 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-02 08:20:08 -0700
commit5a4767e5d822ec9f6ff5c5f1b5a7d88f2a6f23d3 (patch)
tree3878259749fac5bde473d421ee50c16741a82e99 /cc
parent6c99a30bb7969cd720eeb1f53bd2d248fc39d3cc (diff)
parent57522e41231a3044560cc9e2f6ed58560617e16e (diff)
downloadbuild_soong-5a4767e5d822ec9f6ff5c5f1b5a7d88f2a6f23d3.tar.gz
build_soong-5a4767e5d822ec9f6ff5c5f1b5a7d88f2a6f23d3.tar.bz2
build_soong-5a4767e5d822ec9f6ff5c5f1b5a7d88f2a6f23d3.zip
Merge "Soong: Add synopsis to cc_prebuilt_* modules." am: 6e1c3faed5
am: 57522e4123 Change-Id: I5f7a326b95b51419dc0c5e80e952ec758618e74d
Diffstat (limited to 'cc')
-rw-r--r--cc/prebuilt.go24
1 files changed, 17 insertions, 7 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go
index 966ec36a..5ffeb328 100644
--- a/cc/prebuilt.go
+++ b/cc/prebuilt.go
@@ -29,16 +29,20 @@ type prebuiltLinkerInterface interface {
prebuilt() *android.Prebuilt
}
+type prebuiltLinkerProperties struct {
+
+ // a prebuilt library or binary. Can reference a genrule module that generates an executable file.
+ Srcs []string `android:"path,arch_variant"`
+
+ // Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined
+ // symbols, etc), default true.
+ Check_elf_files *bool
+}
+
type prebuiltLinker struct {
android.Prebuilt
- properties struct {
- Srcs []string `android:"path,arch_variant"`
-
- // Check the prebuilt ELF files (e.g. DT_SONAME, DT_NEEDED, resolution of undefined
- // symbols, etc), default true.
- Check_elf_files *bool
- }
+ properties prebuiltLinkerProperties
}
func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
@@ -112,6 +116,8 @@ func (p *prebuiltLibraryLinker) nativeCoverage() bool {
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 {
module, _ := NewPrebuiltSharedLibrary(android.HostAndDeviceSupported)
return module.Init()
@@ -137,6 +143,8 @@ func NewPrebuiltSharedLibrary(hod android.HostOrDeviceSupported) (*Module, *libr
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 {
module, _ := NewPrebuiltStaticLibrary(android.HostAndDeviceSupported)
return module.Init()
@@ -197,6 +205,8 @@ func (p *prebuiltBinaryLinker) link(ctx ModuleContext,
return nil
}
+// cc_prebuilt_binary installs a precompiled executable in srcs property in the
+// device's directory.
func prebuiltBinaryFactory() android.Module {
module, _ := NewPrebuiltBinary(android.HostAndDeviceSupported)
return module.Init()