• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Aconfig declarations and libraries for the Android Automotive OS
16java_defaults {
17    name: "car-framework-aconfig-libraries",
18    // Add java_aconfig_libraries to here to add them to the AAOS
19    srcs: [
20        ":android.car.feature-aconfig-java{.generated_srcjars}",
21    ],
22    libs: [
23        // Add aconfig-annotations-lib as a dependency for the optimization
24        "aconfig-annotations-lib",
25        // TODO(b/303773055): Remove the annotation after access issue is resolved.
26        "unsupportedappusage",
27        "framework-configinfrastructure",
28    ],
29}
30
31// Default flags for java_aconfig_libraries that go into car-lib and car modules
32// fake_device_config is linked to avoid a build error
33java_defaults {
34    name: "car-framework-aconfig-java-defaults",
35    sdk_version: "core_platform",
36    libs: ["fake_device_config"],
37}
38
39aconfig_declarations {
40    name: "android.car.feature-aconfig",
41    package: "android.car.feature",
42    container: "system",
43    srcs: ["flags.aconfig"],
44}
45
46java_aconfig_library {
47    name: "android.car.feature-aconfig-java",
48    aconfig_declarations: "android.car.feature-aconfig",
49    defaults: ["car-framework-aconfig-java-defaults"],
50}
51
52java_aconfig_library {
53    name: "android.car.feature-aconfig-java-host",
54    aconfig_declarations: "android.car.feature-aconfig",
55    defaults: ["car-framework-aconfig-java-defaults"],
56    host_supported: true,
57}
58
59cc_aconfig_library {
60    name: "android.car.feature-aconfig-cpp",
61    aconfig_declarations: "android.car.feature-aconfig",
62}
63