aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2021-07-06 10:34:26 +0100
committerMathew Inwood <mathewi@google.com>2021-07-07 16:01:01 +0100
commit020d2a43c790a6e266c1b030fdf784895fb66ef2 (patch)
tree326d67070c1b004aa28cc90a3e7314eb31ccb954
parent9173f7886cc2b7266b0f58ad96829c65ff3709a4 (diff)
downloadcommon-020d2a43c790a6e266c1b030fdf784895fb66ef2.tar.gz
Support module_build_from_source for more prebuilt types.
SDK prebuilts also need to support module_build_from_source for consistency with module artifacts. Add support for this to the build rules used by SDK prebuilts. Bug: 188427719 Bug: 192588050 Test: m nothing Merged-In: Idb3ed8b92217f05975fbbe208f38378ac1a8ab8b Change-Id: Idb3ed8b92217f05975fbbe208f38378ac1a8ab8b
-rw-r--r--Android.bp59
1 files changed, 59 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 784c3ed4..da69f7d0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -40,3 +40,62 @@ soong_config_module_type {
"prefer",
],
}
+
+soong_config_module_type {
+ name: "module_prebuilt_bootclasspath_fragment",
+ module_type: "prebuilt_bootclasspath_fragment",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_java_import",
+ module_type: "java_import",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}
+soong_config_module_type {
+ name: "module_java_sdk_library_import",
+ module_type: "java_sdk_library_import",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_cc_prebuilt_binary",
+ module_type: "cc_prebuilt_binary",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_cc_prebuilt_library_shared",
+ module_type: "cc_prebuilt_library_shared",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}
+
+soong_config_module_type {
+ name: "module_cc_prebuilt_library_headers",
+ module_type: "cc_prebuilt_library_headers",
+ config_namespace: "ANDROID",
+ bool_variables: ["module_build_from_source"],
+ properties: [
+ "prefer",
+ ],
+}