Anton Hansson | fb97572 | 2021-04-14 19:06:08 +0100 | [diff] [blame] | 1 | // Copyright (C) 2021 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | default_visibility: ["//packages/modules/common:__subpackages__"], |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
Dario Freni | 0b03c39 | 2021-06-28 11:45:39 +0000 | [diff] [blame] | 19 | |
| 20 | soong_config_bool_variable { |
| 21 | name: "module_build_from_source", |
| 22 | } |
| 23 | |
| 24 | soong_config_module_type { |
| 25 | name: "module_apex_set", |
| 26 | module_type: "apex_set", |
| 27 | config_namespace: "ANDROID", |
| 28 | bool_variables: ["module_build_from_source"], |
| 29 | properties: [ |
| 30 | "prefer", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | soong_config_module_type { |
| 35 | name: "module_android_app_import", |
| 36 | module_type: "android_app_import", |
| 37 | config_namespace: "ANDROID", |
| 38 | bool_variables: ["module_build_from_source"], |
| 39 | properties: [ |
| 40 | "prefer", |
| 41 | ], |
| 42 | } |
Mathew Inwood | f3d73b0 | 2021-07-06 10:34:26 +0100 | [diff] [blame] | 43 | |
| 44 | soong_config_module_type { |
Dario Freni | 79fdd8b | 2021-07-26 14:28:24 +0100 | [diff] [blame] | 45 | name: "module_android_app_set", |
| 46 | module_type: "android_app_set", |
| 47 | config_namespace: "ANDROID", |
| 48 | bool_variables: ["module_build_from_source"], |
| 49 | properties: [ |
| 50 | "prefer", |
| 51 | ], |
| 52 | } |
| 53 | |
| 54 | soong_config_module_type { |
Mathew Inwood | f3d73b0 | 2021-07-06 10:34:26 +0100 | [diff] [blame] | 55 | name: "module_prebuilt_bootclasspath_fragment", |
| 56 | module_type: "prebuilt_bootclasspath_fragment", |
| 57 | config_namespace: "ANDROID", |
| 58 | bool_variables: ["module_build_from_source"], |
| 59 | properties: [ |
| 60 | "prefer", |
| 61 | ], |
| 62 | } |
| 63 | |
| 64 | soong_config_module_type { |
Jiakai Zhang | b152a49 | 2021-10-11 11:07:14 +0000 | [diff] [blame] | 65 | name: "module_prebuilt_systemserverclasspath_fragment", |
| 66 | module_type: "prebuilt_systemserverclasspath_fragment", |
| 67 | config_namespace: "ANDROID", |
| 68 | bool_variables: ["module_build_from_source"], |
| 69 | properties: [ |
| 70 | "prefer", |
| 71 | ], |
| 72 | } |
| 73 | |
| 74 | soong_config_module_type { |
Mathew Inwood | f3d73b0 | 2021-07-06 10:34:26 +0100 | [diff] [blame] | 75 | name: "module_java_import", |
| 76 | module_type: "java_import", |
| 77 | config_namespace: "ANDROID", |
| 78 | bool_variables: ["module_build_from_source"], |
| 79 | properties: [ |
| 80 | "prefer", |
| 81 | ], |
| 82 | } |
Martin Stjernholm | 71fb724 | 2022-03-28 12:24:12 +0100 | [diff] [blame] | 83 | |
| 84 | soong_config_module_type { |
| 85 | name: "module_java_test_import", |
| 86 | module_type: "java_test_import", |
| 87 | config_namespace: "ANDROID", |
| 88 | bool_variables: ["module_build_from_source"], |
| 89 | properties: [ |
| 90 | "prefer", |
| 91 | ], |
| 92 | } |
| 93 | |
Mathew Inwood | f3d73b0 | 2021-07-06 10:34:26 +0100 | [diff] [blame] | 94 | soong_config_module_type { |
| 95 | name: "module_java_sdk_library_import", |
| 96 | module_type: "java_sdk_library_import", |
| 97 | config_namespace: "ANDROID", |
| 98 | bool_variables: ["module_build_from_source"], |
| 99 | properties: [ |
| 100 | "prefer", |
| 101 | ], |
| 102 | } |
| 103 | |
| 104 | soong_config_module_type { |
| 105 | name: "module_cc_prebuilt_binary", |
| 106 | module_type: "cc_prebuilt_binary", |
| 107 | config_namespace: "ANDROID", |
| 108 | bool_variables: ["module_build_from_source"], |
| 109 | properties: [ |
| 110 | "prefer", |
| 111 | ], |
| 112 | } |
| 113 | |
| 114 | soong_config_module_type { |
| 115 | name: "module_cc_prebuilt_library_shared", |
| 116 | module_type: "cc_prebuilt_library_shared", |
| 117 | config_namespace: "ANDROID", |
| 118 | bool_variables: ["module_build_from_source"], |
| 119 | properties: [ |
| 120 | "prefer", |
| 121 | ], |
| 122 | } |
| 123 | |
| 124 | soong_config_module_type { |
| 125 | name: "module_cc_prebuilt_library_headers", |
| 126 | module_type: "cc_prebuilt_library_headers", |
| 127 | config_namespace: "ANDROID", |
| 128 | bool_variables: ["module_build_from_source"], |
| 129 | properties: [ |
| 130 | "prefer", |
| 131 | ], |
| 132 | } |
Mathew Inwood | 20cc293 | 2021-07-15 13:32:13 +0100 | [diff] [blame] | 133 | |
| 134 | soong_config_module_type { |
| 135 | name: "module_java_library", |
| 136 | module_type: "java_library", |
| 137 | config_namespace: "ANDROID", |
| 138 | bool_variables: ["module_build_from_source"], |
| 139 | properties: [ |
| 140 | "enabled", |
| 141 | ], |
| 142 | } |
| 143 | |
| 144 | soong_config_module_type { |
| 145 | name: "module_apex", |
| 146 | module_type: "apex", |
| 147 | config_namespace: "ANDROID", |
| 148 | bool_variables: ["module_build_from_source"], |
| 149 | properties: [ |
| 150 | "enabled", |
| 151 | ], |
| 152 | } |
| 153 | |
| 154 | soong_config_module_type { |
| 155 | name: "module_apex_test", |
| 156 | module_type: "apex_test", |
| 157 | config_namespace: "ANDROID", |
| 158 | bool_variables: ["module_build_from_source"], |
| 159 | properties: [ |
| 160 | "enabled", |
| 161 | ], |
| 162 | } |
| 163 | |
| 164 | soong_config_module_type { |
| 165 | name: "module_override_apex", |
| 166 | module_type: "override_apex", |
| 167 | config_namespace: "ANDROID", |
| 168 | bool_variables: ["module_build_from_source"], |
| 169 | properties: [ |
| 170 | "enabled", |
| 171 | ], |
| 172 | } |