diff options
author | Mathew Inwood <mathewi@google.com> | 2021-07-06 10:34:26 +0100 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2021-07-07 16:01:01 +0100 |
commit | 020d2a43c790a6e266c1b030fdf784895fb66ef2 (patch) | |
tree | 326d67070c1b004aa28cc90a3e7314eb31ccb954 | |
parent | 9173f7886cc2b7266b0f58ad96829c65ff3709a4 (diff) | |
download | common-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.bp | 59 |
1 files changed, 59 insertions, 0 deletions
@@ -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", + ], +} |