blob: 2cdee681ccef8ef54318c1b7ba8b738a78171a6b [file] [log] [blame]
Anton Hanssonfb975722021-04-14 19:06:08 +01001// 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}
Dario Freni0b03c392021-06-28 11:45:39 +000019
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}
Mathew Inwoodf3d73b02021-07-06 10:34:26 +010043
44soong_config_module_type {
Dario Freni79fdd8b2021-07-26 14:28:24 +010045 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 {
Mathew Inwoodf3d73b02021-07-06 10:34:26 +010055 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 {
Jiakai Zhangb152a492021-10-11 11:07:14 +000065 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
74soong_config_module_type {
Mathew Inwoodf3d73b02021-07-06 10:34:26 +010075 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 Stjernholm71fb7242022-03-28 12:24:12 +010083
84soong_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 Inwoodf3d73b02021-07-06 10:34:26 +010094soong_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
104soong_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
114soong_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
124soong_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 Inwood20cc2932021-07-15 13:32:13 +0100133
134soong_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
144soong_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
154soong_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
164soong_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}