Ted Bauer | b1edaae | 2024-09-11 19:07:44 +0000 | [diff] [blame] | 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 | |
| 17 | rust_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 Bauer | eb4baa6 | 2024-12-20 21:37:24 +0000 | [diff] [blame] | 27 | apex_available: [ |
| 28 | "//apex_available:platform", |
| 29 | "com.android.configinfrastructure", |
| 30 | ], |
| 31 | min_sdk_version: "34", |
Ted Bauer | b1edaae | 2024-09-11 19:07:44 +0000 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | aconfig_declarations { |
| 35 | name: "aconfig_flags", |
| 36 | package: "com.android.aconfig.flags", |
| 37 | container: "system", |
| 38 | srcs: ["flags.aconfig"], |
| 39 | } |
| 40 | |
| 41 | rust_aconfig_library { |
| 42 | name: "libaconfig_flags_rust", |
| 43 | crate_name: "aconfig_flags_rust", |
| 44 | aconfig_declarations: "aconfig_flags", |
| 45 | host_supported: true, |
Ted Bauer | eb4baa6 | 2024-12-20 21:37:24 +0000 | [diff] [blame] | 46 | apex_available: [ |
| 47 | "//apex_available:platform", |
| 48 | "com.android.configinfrastructure", |
| 49 | ], |
| 50 | min_sdk_version: "34", |
Ted Bauer | b1edaae | 2024-09-11 19:07:44 +0000 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | cc_aconfig_library { |
| 54 | name: "libaconfig_flags_cc", |
| 55 | aconfig_declarations: "aconfig_flags", |
| 56 | } |
Ted Bauer | 52153e9 | 2024-10-02 21:31:25 +0000 | [diff] [blame] | 57 | |
| 58 | java_aconfig_library { |
| 59 | name: "aconfig_flags_java", |
| 60 | aconfig_declarations: "aconfig_flags", |
| 61 | } |