xref: /aosp_15_r20/art/build/flags/Android.bp (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1//
2// Copyright (C) 2024 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["art_license"],
19    default_visibility: [
20        "//art:__subpackages__",
21        "//libcore:__subpackages__",
22    ],
23}
24
25aconfig_declarations {
26    name: "art-aconfig-flags",
27    package: "com.android.art.flags",
28    container: "com.android.art",
29    exportable: true,
30    srcs: ["art-flags.aconfig"],
31    visibility: [
32        "//art:__subpackages__",
33        "//libcore:__subpackages__",
34        "//frameworks/base:__subpackages__",
35        "//packages/modules/UprobeStats:__subpackages__",
36    ],
37}
38
39cc_aconfig_library {
40    name: "art-aconfig-flags-lib",
41    aconfig_declarations: "art-aconfig-flags",
42    host_supported: true,
43    min_sdk_version: "31",
44    apex_available: [
45        "//apex_available:platform",
46        "//apex_available:anyapex",
47    ],
48}
49
50java_aconfig_library {
51    name: "art-aconfig-flags-java-lib",
52    aconfig_declarations: "art-aconfig-flags",
53    min_sdk_version: "31", // ART module is enabled on Android 12 or above.
54    sdk_version: "none",
55    patch_module: "java.base",
56    system_modules: "core-all-system-modules",
57    libs: ["framework-api-annotations-lib"],
58    apex_available: [
59        "//apex_available:platform",
60        "//apex_available:anyapex",
61    ],
62}
63
64java_aconfig_library {
65    name: "art-aconfig-flags-java-lib-host",
66    host_supported: true,
67    aconfig_declarations: "art-aconfig-flags",
68    visibility: [
69        "//cts/hostsidetests/compilation:__subpackages__",
70    ],
71}
72