aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2021-07-15 13:32:13 +0100
committerMathew Inwood <mathewi@google.com>2021-07-27 15:34:17 +0000
commit20cc2938bb2e235cc4ff3a23f4b63992e0cc08c9 (patch)
tree9b9fa6eabefbbe89c3e262a9256000480bef8c9c /Android.bp
parentd518a8d6e5ad7003889964bbee5dafa25dc53a1e (diff)
downloadcommon-20cc2938bb2e235cc4ff3a23f4b63992e0cc08c9.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 Change-Id: I0f28f57de6de7101dfbb2112451d4da24a7d8295
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp40
1 files changed, 40 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ea4c251e..cc4b402b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -109,3 +109,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",
+ ],
+}