Extend (header) visibility to //external/stg
This extends the general visibility to //external/stg.
Further, `libabigail` does now also export headers to targets that link
`libabigail` as static lib. This was not needed before because of the
lack of external library users.
stg is currently using libabigail headers that are not part of the
public interface (mostly due to unneccessary exposure), but this is
generally fine. Hence add `libabigail_src_headers` to expose those
internal headers specifically to //external/stg only. This will link as
we do not apply any symbol visibility restrictions to the built
libabigail (as opposed to the upstream libabigail build).
Bug: 188176217
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I6022906a4d6cf9ce315b0ebe51ea1b7489f69ca6
diff --git a/Android.bp b/Android.bp
index 8ab8659..6e8955a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,7 +41,6 @@
local_include_dirs: [
"src",
- "include",
],
static_libs: [
@@ -55,7 +54,7 @@
],
visibility: [
- "//visibility:private",
+ "//external/stg",
],
compile_multilib: "64",
target: {
@@ -77,6 +76,16 @@
exclude_srcs: [
"src/abg-viz-*",
],
+ export_include_dirs: ["include"],
+}
+
+cc_library_headers {
+ name: "libabigail_src_headers",
+ host_supported: true,
+ visibility: ["//external/stg"],
+ export_include_dirs: [
+ "src",
+ ],
}
cc_binary_host {