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 { |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame^] | 14 | 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 | |
| 21 | soong_config_module_type { |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 22 | 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 | |
| 29 | soong_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 Stjernholm | 7eedd44 | 2021-05-06 10:03:21 +0100 | [diff] [blame] | 34 | properties: [ |
| 35 | "enabled", |
| 36 | "target.android.test_for", |
| 37 | ], |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | soong_config_module_type { |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame^] | 41 | 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 | |
| 48 | soong_config_module_type { |
Martin Stjernholm | 8e0f6aa | 2021-03-30 21:22:18 +0100 | [diff] [blame] | 49 | name: "art_module_exports", |
| 50 | module_type: "module_exports", |
| 51 | config_namespace: "art_module", |
| 52 | bool_variables: ["source_build"], |
| 53 | properties: ["enabled"], |
| 54 | } |
| 55 | |
| 56 | soong_config_module_type { |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 57 | 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 Stjernholm | 8e0f6aa | 2021-03-30 21:22:18 +0100 | [diff] [blame] | 63 | |
| 64 | soong_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 | |
| 72 | soong_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 Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame^] | 79 | |
| 80 | soong_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 | } |