blob: a37721dedf3d9b71b6ceb88715bffcd29a680985 [file] [log] [blame]
Martin Stjernholm10bb9c52020-12-01 22:53:51 +00001// Set up Soong config variables.
2// https://android.googlesource.com/platform/build/soong/+/master/README.md#soong-config-variables
3
4// The source_build variable in the art_module namespace is used to enable the
Cole Faust76aa34b2022-02-22 17:03:02 -08005// apex, sdk, and module_exports modules that make up the ART Module by calling
6// $(call soong_config_set,art_module,source_build,true) in make. (which is
7// set to the value of the ART_MODULE_BUILD_FROM_SOURCE variable)
Martin Stjernholm10bb9c52020-12-01 22:53:51 +00008// TODO(b/172480617): Clean up when ART source is no longer in the platform
9// manifest.
10soong_config_bool_variable {
11 name: "source_build",
12}
13
14soong_config_module_type {
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010015 name: "art_module_art_global_defaults",
16 module_type: "art_global_defaults",
17 config_namespace: "art_module",
18 bool_variables: ["source_build"],
19 properties: ["enabled"],
20}
21
22soong_config_module_type {
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000023 name: "art_module_apex_defaults",
24 module_type: "apex_defaults",
25 config_namespace: "art_module",
26 bool_variables: ["source_build"],
27 properties: ["enabled"],
28}
29
30soong_config_module_type {
31 name: "art_module_cc_defaults",
32 module_type: "cc_defaults",
33 config_namespace: "art_module",
34 bool_variables: ["source_build"],
Martin Stjernholm7eedd442021-05-06 10:03:21 +010035 properties: [
36 "enabled",
37 "target.android.test_for",
38 ],
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000039}
40
41soong_config_module_type {
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010042 name: "art_module_cc_genrule",
43 module_type: "cc_genrule",
44 config_namespace: "art_module",
45 bool_variables: ["source_build"],
46 properties: ["enabled"],
47}
48
49soong_config_module_type {
Martin Stjernholm8e0f6aa2021-03-30 21:22:18 +010050 name: "art_module_exports",
51 module_type: "module_exports",
52 config_namespace: "art_module",
53 bool_variables: ["source_build"],
54 properties: ["enabled"],
55}
56
57soong_config_module_type {
Martin Stjernholm41e56c22021-10-14 00:28:12 +010058 name: "art_module_java_defaults",
59 module_type: "java_defaults",
60 config_namespace: "art_module",
61 bool_variables: ["source_build"],
62 properties: ["enabled"],
63}
64
65soong_config_module_type {
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000066 name: "art_module_genrule_defaults",
67 module_type: "genrule_defaults",
68 config_namespace: "art_module",
69 bool_variables: ["source_build"],
70 properties: ["enabled"],
71}
Martin Stjernholm8e0f6aa2021-03-30 21:22:18 +010072
73soong_config_module_type {
Martin Stjernholm41e56c22021-10-14 00:28:12 +010074 name: "art_module_prebuilt_defaults",
75 module_type: "prebuilt_defaults",
Martin Stjernholm8e0f6aa2021-03-30 21:22:18 +010076 config_namespace: "art_module",
77 bool_variables: ["source_build"],
78 properties: ["enabled"],
79}
80
81soong_config_module_type {
82 name: "art_module_sdk",
83 module_type: "sdk",
84 config_namespace: "art_module",
85 bool_variables: ["source_build"],
86 properties: ["enabled"],
87}
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010088
89soong_config_module_type {
90 name: "art_module_sh_binary",
91 module_type: "sh_binary",
92 config_namespace: "art_module",
93 bool_variables: ["source_build"],
94 properties: ["enabled"],
95}