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 |
Cole Faust | 76aa34b | 2022-02-22 17:03:02 -0800 | [diff] [blame] | 5 | // 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 Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 8 | // TODO(b/172480617): Clean up when ART source is no longer in the platform |
| 9 | // manifest. |
| 10 | soong_config_bool_variable { |
| 11 | name: "source_build", |
| 12 | } |
| 13 | |
| 14 | soong_config_module_type { |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 15 | 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 | |
| 22 | soong_config_module_type { |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 23 | 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 | |
| 30 | soong_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 Stjernholm | 7eedd44 | 2021-05-06 10:03:21 +0100 | [diff] [blame] | 35 | properties: [ |
| 36 | "enabled", |
| 37 | "target.android.test_for", |
| 38 | ], |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | soong_config_module_type { |
Martin Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 42 | 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 | |
| 49 | soong_config_module_type { |
Martin Stjernholm | 8e0f6aa | 2021-03-30 21:22:18 +0100 | [diff] [blame] | 50 | name: "art_module_exports", |
| 51 | module_type: "module_exports", |
| 52 | config_namespace: "art_module", |
| 53 | bool_variables: ["source_build"], |
| 54 | properties: ["enabled"], |
| 55 | } |
| 56 | |
| 57 | soong_config_module_type { |
Martin Stjernholm | 41e56c2 | 2021-10-14 00:28:12 +0100 | [diff] [blame] | 58 | 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 | |
| 65 | soong_config_module_type { |
Martin Stjernholm | 10bb9c5 | 2020-12-01 22:53:51 +0000 | [diff] [blame] | 66 | 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 Stjernholm | 8e0f6aa | 2021-03-30 21:22:18 +0100 | [diff] [blame] | 72 | |
| 73 | soong_config_module_type { |
Martin Stjernholm | 41e56c2 | 2021-10-14 00:28:12 +0100 | [diff] [blame] | 74 | name: "art_module_prebuilt_defaults", |
| 75 | module_type: "prebuilt_defaults", |
Martin Stjernholm | 8e0f6aa | 2021-03-30 21:22:18 +0100 | [diff] [blame] | 76 | config_namespace: "art_module", |
| 77 | bool_variables: ["source_build"], |
| 78 | properties: ["enabled"], |
| 79 | } |
| 80 | |
| 81 | soong_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 Stjernholm | 1dc77ab | 2021-05-10 17:44:05 +0100 | [diff] [blame] | 88 | |
| 89 | soong_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 | } |