Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 1 | // 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. |
| 9 | soong_config_bool_variable { |
| 10 | name: "source_build", |
| 11 | } |
| 12 | |
| 13 | soong_config_module_type { |
| 14 | name: "art_module_sdk", |
| 15 | module_type: "sdk", |
| 16 | config_namespace: "art_module", |
| 17 | bool_variables: ["source_build"], |
| 18 | properties: ["enabled"], |
| 19 | } |
| 20 | |
| 21 | soong_config_module_type { |
| 22 | name: "art_module_exports", |
| 23 | module_type: "module_exports", |
| 24 | config_namespace: "art_module", |
| 25 | bool_variables: ["source_build"], |
| 26 | properties: ["enabled"], |
| 27 | } |
| 28 | |
| 29 | soong_config_module_type { |
| 30 | name: "art_module_apex_defaults", |
| 31 | module_type: "apex_defaults", |
| 32 | config_namespace: "art_module", |
| 33 | bool_variables: ["source_build"], |
| 34 | properties: ["enabled"], |
| 35 | } |
| 36 | |
| 37 | soong_config_module_type { |
| 38 | name: "art_module_cc_defaults", |
| 39 | module_type: "cc_defaults", |
| 40 | config_namespace: "art_module", |
| 41 | bool_variables: ["source_build"], |
| 42 | properties: ["enabled"], |
| 43 | } |
| 44 | |
| 45 | soong_config_module_type { |
| 46 | name: "art_module_genrule_defaults", |
| 47 | module_type: "genrule_defaults", |
| 48 | config_namespace: "art_module", |
| 49 | bool_variables: ["source_build"], |
| 50 | properties: ["enabled"], |
| 51 | } |