blob: 3e2d8fce383ebbd0b40ac519b03dd0cd694e3964 [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
5// apex, sdk, and module_exports modules that make up the ART Module by setting
6// SOONG_CONFIG_art_module_source_build in make.
7// TODO(b/172480617): Clean up when ART source is no longer in the platform
8// manifest.
9soong_config_bool_variable {
10 name: "source_build",
11}
12
13soong_config_module_type {
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010014 name: "art_module_art_global_defaults",
15 module_type: "art_global_defaults",
16 config_namespace: "art_module",
17 bool_variables: ["source_build"],
18 properties: ["enabled"],
19}
20
21soong_config_module_type {
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000022 name: "art_module_apex_defaults",
23 module_type: "apex_defaults",
24 config_namespace: "art_module",
25 bool_variables: ["source_build"],
26 properties: ["enabled"],
27}
28
29soong_config_module_type {
30 name: "art_module_cc_defaults",
31 module_type: "cc_defaults",
32 config_namespace: "art_module",
33 bool_variables: ["source_build"],
Martin Stjernholm7eedd442021-05-06 10:03:21 +010034 properties: [
35 "enabled",
36 "target.android.test_for",
37 ],
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000038}
39
40soong_config_module_type {
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010041 name: "art_module_cc_genrule",
42 module_type: "cc_genrule",
43 config_namespace: "art_module",
44 bool_variables: ["source_build"],
45 properties: ["enabled"],
46}
47
48soong_config_module_type {
Martin Stjernholm8e0f6aa2021-03-30 21:22:18 +010049 name: "art_module_exports",
50 module_type: "module_exports",
51 config_namespace: "art_module",
52 bool_variables: ["source_build"],
53 properties: ["enabled"],
54}
55
56soong_config_module_type {
Martin Stjernholm10bb9c52020-12-01 22:53:51 +000057 name: "art_module_genrule_defaults",
58 module_type: "genrule_defaults",
59 config_namespace: "art_module",
60 bool_variables: ["source_build"],
61 properties: ["enabled"],
62}
Martin Stjernholm8e0f6aa2021-03-30 21:22:18 +010063
64soong_config_module_type {
65 name: "art_module_java_defaults",
66 module_type: "java_defaults",
67 config_namespace: "art_module",
68 bool_variables: ["source_build"],
69 properties: ["enabled"],
70}
71
72soong_config_module_type {
73 name: "art_module_sdk",
74 module_type: "sdk",
75 config_namespace: "art_module",
76 bool_variables: ["source_build"],
77 properties: ["enabled"],
78}
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +010079
80soong_config_module_type {
81 name: "art_module_sh_binary",
82 module_type: "sh_binary",
83 config_namespace: "art_module",
84 bool_variables: ["source_build"],
85 properties: ["enabled"],
86}