diff options
author | Treehugger Robot | 2019-05-06 13:12:12 -0500 |
---|---|---|
committer | Gerrit Code Review | 2019-05-06 13:12:12 -0500 |
commit | e0dbdd87f09b9345b6a79209cd5d1fb8ea44b9fc (patch) | |
tree | d4b2a26eec76fd65cf462d799bb63dabfbc2a9b5 /cc | |
parent | 0e55ba6dbcc300852aef3096987fc53168e4bb6d (diff) | |
parent | 8c8563746cdbdc8c80e18ee5dffe838f2713f60e (diff) | |
download | platform-build-soong-e0dbdd87f09b9345b6a79209cd5d1fb8ea44b9fc.tar.gz platform-build-soong-e0dbdd87f09b9345b6a79209cd5d1fb8ea44b9fc.tar.xz platform-build-soong-e0dbdd87f09b9345b6a79209cd5d1fb8ea44b9fc.zip |
Merge "Soong: Add synopsis to ndk_prebuilt_* modules."
Diffstat (limited to 'cc')
-rw-r--r-- | cc/ndk_prebuilt.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cc/ndk_prebuilt.go b/cc/ndk_prebuilt.go index 2a7e6573..8451295e 100644 --- a/cc/ndk_prebuilt.go +++ b/cc/ndk_prebuilt.go | |||
@@ -64,6 +64,10 @@ func (*ndkPrebuiltObjectLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { | |||
64 | return deps | 64 | return deps |
65 | } | 65 | } |
66 | 66 | ||
67 | // ndk_prebuilt_object exports a precompiled ndk object file for linking | ||
68 | // operations. Soong's module name format is ndk_<NAME>.o.<sdk_version> where | ||
69 | // the object is located under | ||
70 | // ./prebuilts/ndk/current/platforms/android-<sdk_version>/arch-$(HOST_ARCH)/usr/lib/<NAME>.o. | ||
67 | func ndkPrebuiltObjectFactory() android.Module { | 71 | func ndkPrebuiltObjectFactory() android.Module { |
68 | module := newBaseModule(android.DeviceSupported, android.MultilibBoth) | 72 | module := newBaseModule(android.DeviceSupported, android.MultilibBoth) |
69 | module.linker = &ndkPrebuiltObjectLinker{ | 73 | module.linker = &ndkPrebuiltObjectLinker{ |
@@ -98,6 +102,10 @@ func (*ndkPrebuiltStlLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { | |||
98 | return deps | 102 | return deps |
99 | } | 103 | } |
100 | 104 | ||
105 | // ndk_prebuilt_shared_stl exports a precompiled ndk shared standard template | ||
106 | // library (stl) library for linking operation. The soong's module name format | ||
107 | // is ndk_<NAME>.so where the library is located under | ||
108 | // ./prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/$(HOST_ARCH)/<NAME>.so. | ||
101 | func ndkPrebuiltSharedStlFactory() android.Module { | 109 | func ndkPrebuiltSharedStlFactory() android.Module { |
102 | module, library := NewLibrary(android.DeviceSupported) | 110 | module, library := NewLibrary(android.DeviceSupported) |
103 | library.BuildOnlyShared() | 111 | library.BuildOnlyShared() |
@@ -113,6 +121,10 @@ func ndkPrebuiltSharedStlFactory() android.Module { | |||
113 | return module.Init() | 121 | return module.Init() |
114 | } | 122 | } |
115 | 123 | ||
124 | // ndk_prebuilt_static_stl exports a precompiled ndk static standard template | ||
125 | // library (stl) library for linking operation. The soong's module name format | ||
126 | // is ndk_<NAME>.a where the library is located under | ||
127 | // ./prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/$(HOST_ARCH)/<NAME>.a. | ||
116 | func ndkPrebuiltStaticStlFactory() android.Module { | 128 | func ndkPrebuiltStaticStlFactory() android.Module { |
117 | module, library := NewLibrary(android.DeviceSupported) | 129 | module, library := NewLibrary(android.DeviceSupported) |
118 | library.BuildOnlyStatic() | 130 | library.BuildOnlyStatic() |