• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17rust_library {
18    name: "libaconfig_flags",
19    crate_name: "aconfig_flags",
20    srcs: [
21        "src/lib.rs",
22    ],
23    rustlibs: [
24        "libaconfig_flags_rust",
25    ],
26    host_supported: true,
27    apex_available: [
28        "//apex_available:platform",
29        "com.android.configinfrastructure",
30    ],
31    min_sdk_version: "34",
32}
33
34aconfig_declarations {
35    name: "aconfig_flags",
36    package: "com.android.aconfig.flags",
37    container: "system",
38    srcs: ["flags.aconfig"],
39}
40
41rust_aconfig_library {
42    name: "libaconfig_flags_rust",
43    crate_name: "aconfig_flags_rust",
44    aconfig_declarations: "aconfig_flags",
45    host_supported: true,
46    apex_available: [
47        "//apex_available:platform",
48        "com.android.configinfrastructure",
49    ],
50    min_sdk_version: "34",
51}
52
53cc_aconfig_library {
54    name: "libaconfig_flags_cc",
55    aconfig_declarations: "aconfig_flags",
56}
57
58java_aconfig_library {
59    name: "aconfig_flags_java",
60    aconfig_declarations: "aconfig_flags",
61}
62