Expose heapprofd_client_api to mainline modules.
Test: depend on from ART APEX.
Bug: 160214819
Bug: 141241849
Change-Id: I25a342975e00bc217972bc7ff843df11e1b74761
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index f5a7266..ae1d379 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -179,6 +179,10 @@
# guarantee that the global constructors get run before it is used.
('cflags', {'-Wglobal-constructors', '-Werror=global-constructors'}),
('version_script', 'src/profiling/memory/heapprofd_client_api.map.txt'),
+ ('stubs', {
+ 'versions': ['S'],
+ 'symbol_file': 'src/profiling/memory/heapprofd_client_api.map.txt',
+ })
],
'heapprofd_client': [
('include_dirs', {'bionic/libc'}),
@@ -454,6 +458,7 @@
self.version_script = None
self.require_root = None
self.test_suites = set()
+ self.stubs = {}
def to_string(self, output):
if self.comment:
@@ -486,6 +491,7 @@
self._output_field(output, 'version_script')
self._output_field(output, 'require_root')
self._output_field(output, 'test_suites')
+ self._output_field(output, 'stubs')
target_out = []
self._output_field(target_out, 'android')