aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2021-07-15 13:32:13 +0100
committerMathew Inwood <mathewi@google.com>2021-07-28 08:56:58 +0000
commita32091cf1c5c7572228d3dc5971a2142f42c4ede (patch)
tree8bd4017b12d1b92bac0f9efcc0a03902f2a995b1
parent8de1a3a42370b04e142e1744e0feb9f781a7cbf2 (diff)
downloadcommon-a32091cf1c5c7572228d3dc5971a2142f42c4ede.tar.gz
Add soong config rules for more module rules.
We need to disable some such build rules to get SDK prebuilts working to add appropriate rules here to allow the enabled property to be overridden. Bug: 192556458 Test: m Merged-In: I0f28f57de6de7101dfbb2112451d4da24a7d8295 Change-Id: I0f28f57de6de7101dfbb2112451d4da24a7d8295
-rw-r--r--Android.bp40
1 files changed, 40 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index da69f7d0..0f1a0bf4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -99,3 +99,43 @@ soong_config_module_type {
"prefer",
],
}
+
+soong_config_module_type {
+ name: "module_java_library",
+ module_type: "java_library",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "enabled",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_apex",
+ module_type: "apex",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "enabled",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_apex_test",
+ module_type: "apex_test",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "enabled",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_override_apex",
+ module_type: "override_apex",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "enabled",
+ ],
+}