apex_available becomes more correct
Previously, Soong didn't follow the static dependencies when checking
apex_available. As a result, a module that is not available to an APEX
(or to the platform) was able to be statically linked from the APEX (or
the platform).
As the Soong bug is fixed, unchecked dependencies have revealed and this
change reflects the finding.
Exempt-From-Owner-Approval: cherry-pick from internal
Bug: 147671264
Test: m
Merged-In: I6d9dbe31a8d46d26a4925462edd1984281bd203a
(cherry picked from commit a24189de28d3dc078ffe3e694816859bce9ce730)
Change-Id: I6d9dbe31a8d46d26a4925462edd1984281bd203a
diff --git a/tools/cpp-define-generator/Android.bp b/tools/cpp-define-generator/Android.bp
index 20634fe..65310b8 100644
--- a/tools/cpp-define-generator/Android.bp
+++ b/tools/cpp-define-generator/Android.bp
@@ -31,7 +31,10 @@
// Produce text file rather than binary.
cflags: ["-S"],
srcs: ["asm_defines.cc"],
- apex_available: ["//apex_available:platform"],
+ apex_available: [
+ "com.android.art.debug",
+ "com.android.art.release",
+ ],
}
// This extracts the compile-time constants from asm_defines.s and creates the header.