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:
Dan Albert
2018-11-28 08:30:10 -08:00
parent f9e2c3f5d7
commit 23d37e09e9
6 changed files with 44 additions and 2 deletions

View File

@@ -77,6 +77,11 @@ type headerProperties struct {
// Path to the NOTICE file associated with the headers.
License *string
// True if this API is not yet ready to be shipped in the NDK. It will be
// available in the platform for testing, but will be excluded from the
// sysroot provided to the NDK proper.
Draft bool
}
type headerModule struct {
@@ -182,6 +187,11 @@ type versionedHeaderProperties struct {
// Path to the NOTICE file associated with the headers.
License *string
// True if this API is not yet ready to be shipped in the NDK. It will be
// available in the platform for testing, but will be excluded from the
// sysroot provided to the NDK proper.
Draft bool
}
// Like ndk_headers, but preprocesses the headers with the bionic versioner:
@@ -309,6 +319,11 @@ type preprocessedHeadersProperties struct {
// Path to the NOTICE file associated with the headers.
License *string
// True if this API is not yet ready to be shipped in the NDK. It will be
// available in the platform for testing, but will be excluded from the
// sysroot provided to the NDK proper.
Draft bool
}
type preprocessedHeadersModule struct {