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 15package { 16 default_visibility: ["//packages/modules/common:__subpackages__"], 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20soong_config_bool_variable { 21 name: "module_build_from_source", 22} 23 24soong_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 34soong_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} 43 44soong_config_module_type { 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 54soong_config_module_type { 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 64soong_config_module_type { 65 name: "module_java_import", 66 module_type: "java_import", 67 config_namespace: "ANDROID", 68 bool_variables: ["module_build_from_source"], 69 properties: [ 70 "prefer", 71 ], 72} 73soong_config_module_type { 74 name: "module_java_sdk_library_import", 75 module_type: "java_sdk_library_import", 76 config_namespace: "ANDROID", 77 bool_variables: ["module_build_from_source"], 78 properties: [ 79 "prefer", 80 ], 81} 82 83soong_config_module_type { 84 name: "module_cc_prebuilt_binary", 85 module_type: "cc_prebuilt_binary", 86 config_namespace: "ANDROID", 87 bool_variables: ["module_build_from_source"], 88 properties: [ 89 "prefer", 90 ], 91} 92 93soong_config_module_type { 94 name: "module_cc_prebuilt_library_shared", 95 module_type: "cc_prebuilt_library_shared", 96 config_namespace: "ANDROID", 97 bool_variables: ["module_build_from_source"], 98 properties: [ 99 "prefer", 100 ], 101} 102 103soong_config_module_type { 104 name: "module_cc_prebuilt_library_headers", 105 module_type: "cc_prebuilt_library_headers", 106 config_namespace: "ANDROID", 107 bool_variables: ["module_build_from_source"], 108 properties: [ 109 "prefer", 110 ], 111} 112 113soong_config_module_type { 114 name: "module_java_library", 115 module_type: "java_library", 116 config_namespace: "ANDROID", 117 bool_variables: ["module_build_from_source"], 118 properties: [ 119 "enabled", 120 ], 121} 122 123soong_config_module_type { 124 name: "module_apex", 125 module_type: "apex", 126 config_namespace: "ANDROID", 127 bool_variables: ["module_build_from_source"], 128 properties: [ 129 "enabled", 130 ], 131} 132 133soong_config_module_type { 134 name: "module_apex_test", 135 module_type: "apex_test", 136 config_namespace: "ANDROID", 137 bool_variables: ["module_build_from_source"], 138 properties: [ 139 "enabled", 140 ], 141} 142 143soong_config_module_type { 144 name: "module_override_apex", 145 module_type: "override_apex", 146 config_namespace: "ANDROID", 147 bool_variables: ["module_build_from_source"], 148 properties: [ 149 "enabled", 150 ], 151} 152