xref: /aosp_15_r20/build/make/tools/aconfig/aconfig_flags/Android.bp (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
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}
28
29aconfig_declarations {
30    name: "aconfig_flags",
31    package: "com.android.aconfig.flags",
32    container: "system",
33    srcs: ["flags.aconfig"],
34}
35
36rust_aconfig_library {
37    name: "libaconfig_flags_rust",
38    crate_name: "aconfig_flags_rust",
39    aconfig_declarations: "aconfig_flags",
40    host_supported: true,
41}
42
43cc_aconfig_library {
44    name: "libaconfig_flags_cc",
45    aconfig_declarations: "aconfig_flags",
46}
47
48java_aconfig_library {
49    name: "aconfig_flags_java",
50    aconfig_declarations: "aconfig_flags",
51}
52