summaryrefslogtreecommitdiff
path: root/cc/ndk_library.go
diff options
context:
space:
mode:
author Dan Albert <danalbert@google.com> 2024-09-03 23:05:46 +0000
committer Dan Albert <danalbert@google.com> 2024-09-03 23:05:46 +0000
commitba9f9262a31ba2b814320aaa6217677bb5719731 (patch)
tree4e38541a5cb0721ba64fa55296474509d3ed1d32 /cc/ndk_library.go
parentae74fb63f1901342ce42b0ab864502932d6837c1 (diff)
Add an explanation to ndk_library.
Bug: http://b/357711733 Test: None Change-Id: I56fde036f7fe49ccf8b3a47a4eaaa4abac008fc7
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r--cc/ndk_library.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index 3e35ef50a..47b6114aa 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -103,8 +103,17 @@ type libraryProperties struct {
// https://github.com/android-ndk/ndk/issues/265.
Unversioned_until *string
- // Headers presented by this library to the Public API Surface
+ // DO NOT USE THIS
+ // NDK libraries should not export their headers. Headers belonging to NDK
+ // libraries should be added to the NDK with an ndk_headers module.
Export_header_libs []string
+
+ // Do not add other export_* properties without consulting with danalbert@.
+ // Consumers of ndk_library modules should emulate the typical NDK build
+ // behavior as closely as possible (that is, all NDK APIs are exposed to
+ // builds via --sysroot). Export behaviors used in Soong will not be present
+ // for app developers as they don't use Soong, and reliance on these export
+ // behaviors can mask issues with the NDK sysroot.
}
type stubDecorator struct {