summaryrefslogtreecommitdiff
path: root/build/SoongConfig.bp
blob: 3e2d8fce383ebbd0b40ac519b03dd0cd694e3964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Set up Soong config variables.
// https://android.googlesource.com/platform/build/soong/+/master/README.md#soong-config-variables

// The source_build variable in the art_module namespace is used to enable the
// apex, sdk, and module_exports modules that make up the ART Module by setting
// SOONG_CONFIG_art_module_source_build in make.
// TODO(b/172480617): Clean up when ART source is no longer in the platform
// manifest.
soong_config_bool_variable {
    name: "source_build",
}

soong_config_module_type {
    name: "art_module_art_global_defaults",
    module_type: "art_global_defaults",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_apex_defaults",
    module_type: "apex_defaults",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_cc_defaults",
    module_type: "cc_defaults",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: [
        "enabled",
        "target.android.test_for",
    ],
}

soong_config_module_type {
    name: "art_module_cc_genrule",
    module_type: "cc_genrule",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_exports",
    module_type: "module_exports",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_genrule_defaults",
    module_type: "genrule_defaults",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_java_defaults",
    module_type: "java_defaults",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_sdk",
    module_type: "sdk",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}

soong_config_module_type {
    name: "art_module_sh_binary",
    module_type: "sh_binary",
    config_namespace: "art_module",
    bool_variables: ["source_build"],
    properties: ["enabled"],
}