blob: 1b4e148ce3222914359e96e6fd59e02d20746403 [file] [log] [blame]
Ted Bauerb1edaae2024-09-11 19:07:44 +00001/*
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,
Ted Bauereb4baa62024-12-20 21:37:24 +000027 apex_available: [
28 "//apex_available:platform",
29 "com.android.configinfrastructure",
30 ],
31 min_sdk_version: "34",
Ted Bauerb1edaae2024-09-11 19:07:44 +000032}
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,
Ted Bauereb4baa62024-12-20 21:37:24 +000046 apex_available: [
47 "//apex_available:platform",
48 "com.android.configinfrastructure",
49 ],
50 min_sdk_version: "34",
Ted Bauerb1edaae2024-09-11 19:07:44 +000051}
52
53cc_aconfig_library {
54 name: "libaconfig_flags_cc",
55 aconfig_declarations: "aconfig_flags",
56}
Ted Bauer52153e92024-10-02 21:31:25 +000057
58java_aconfig_library {
59 name: "aconfig_flags_java",
60 aconfig_declarations: "aconfig_flags",
61}