Allow NDK APIs to be marked as drafts.
Draft APIs are available to the platform and to CTS to allow developers to iterate on an API, but hidden from the NDK artifacts to avoid releasing the API until it is ready. Test: Mark binder_ndk headers and library as drafts, make checkbuild, build-ndk-prebuilts.sh, verify missing from NDK artifact. Bug: http://b/120091134 Change-Id: I8685e92bdaaea581e17fe98e7a2bfb9388f9f132
This commit is contained in:
@@ -104,22 +104,38 @@ func (n *ndkSingleton) GenerateBuildActions(ctx android.SingletonContext) {
|
||||
}
|
||||
|
||||
if m, ok := module.(*headerModule); ok {
|
||||
if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft {
|
||||
return
|
||||
}
|
||||
|
||||
installPaths = append(installPaths, m.installPaths...)
|
||||
licensePaths = append(licensePaths, m.licensePath)
|
||||
}
|
||||
|
||||
if m, ok := module.(*versionedHeaderModule); ok {
|
||||
if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft {
|
||||
return
|
||||
}
|
||||
|
||||
installPaths = append(installPaths, m.installPaths...)
|
||||
licensePaths = append(licensePaths, m.licensePath)
|
||||
}
|
||||
|
||||
if m, ok := module.(*preprocessedHeadersModule); ok {
|
||||
if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft {
|
||||
return
|
||||
}
|
||||
|
||||
installPaths = append(installPaths, m.installPaths...)
|
||||
licensePaths = append(licensePaths, m.licensePath)
|
||||
}
|
||||
|
||||
if m, ok := module.(*Module); ok {
|
||||
if installer, ok := m.installer.(*stubDecorator); ok {
|
||||
if ctx.Config().ExcludeDraftNdkApis() &&
|
||||
installer.properties.Draft {
|
||||
return
|
||||
}
|
||||
installPaths = append(installPaths, installer.installPath)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user