aboutsummaryrefslogtreecommitdiffstats
path: root/cc/ndk_library.go
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2018-11-28 08:30:10 -0800
committerDan Albert <danalbert@google.com>2018-11-28 09:52:12 -0800
commit23d37e09e994a6a2744a6746f72998499d5eaf5f (patch)
treee0b081c4c8f7a8de899cb36d013b8ba5ae8481e9 /cc/ndk_library.go
parentf9e2c3f5d7e0abd4c0824f30f789978bdfdf6fa5 (diff)
downloadbuild_soong-23d37e09e994a6a2744a6746f72998499d5eaf5f.tar.gz
build_soong-23d37e09e994a6a2744a6746f72998499d5eaf5f.tar.bz2
build_soong-23d37e09e994a6a2744a6746f72998499d5eaf5f.zip
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
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r--cc/ndk_library.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index 63d9f299..53fe314b 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -91,6 +91,11 @@ type libraryProperties struct {
// Private property for use by the mutator that splits per-API level.
ApiLevel string `blueprint:"mutated"`
+
+ // 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 stubDecorator struct {