Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 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 | // |
Bob Badour | d60244e | 2021-02-12 17:07:10 -0800 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Seth Moore | 6ac2f49 | 2022-05-06 10:15:03 -0700 | [diff] [blame] | 20 | genrule { |
| 21 | name: "statslog-remoteprovisioner-java-gen", |
| 22 | tools: ["stats-log-api-gen"], |
| 23 | cmd: "$(location stats-log-api-gen) --java $(out) --module remoteprovisioner " + |
| 24 | "--javaPackage com.android.remoteprovisioner --javaClass RemoteProvisionerStatsLog", |
| 25 | out: ["com/android/remoteprovisioner/RemoteProvisionerStatsLog.java"], |
| 26 | } |
| 27 | |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 28 | android_app { |
| 29 | name: "RemoteProvisioner", |
| 30 | platform_apis: true, |
| 31 | privileged: true, |
Max Bires | 07c97ea | 2021-03-23 08:41:49 -0700 | [diff] [blame] | 32 | system_ext_specific: true, |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 33 | libs: [ |
Jeongik Cha | 58d181e | 2021-02-17 12:38:50 +0900 | [diff] [blame] | 34 | "android.system.keystore2-V1-java", |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 35 | "framework-annotations-lib", |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 36 | ], |
Max Bires | 7b8b6ad | 2022-04-27 09:21:30 -0700 | [diff] [blame] | 37 | optimize: { |
| 38 | proguard_flags_files: ["proguard.flags"] |
| 39 | }, |
Max Bires | 0dbe39c | 2021-02-07 18:39:00 -0800 | [diff] [blame] | 40 | static_libs: [ |
Max Bires | 1b697e2 | 2021-02-15 01:07:15 -0800 | [diff] [blame] | 41 | "android.hardware.security.keymint-V1-java", |
| 42 | "android.security.remoteprovisioning-java", |
Max Bires | c8a7ae4 | 2021-12-15 16:37:29 -0800 | [diff] [blame] | 43 | "androidx.work_work-runtime", |
Max Bires | d8da1e4 | 2021-04-21 16:14:55 -0700 | [diff] [blame] | 44 | "cbor-java", |
Max Bires | 0dbe39c | 2021-02-07 18:39:00 -0800 | [diff] [blame] | 45 | ], |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 46 | resource_dirs: ["res"], |
Seth Moore | 6ac2f49 | 2022-05-06 10:15:03 -0700 | [diff] [blame] | 47 | srcs: [ |
| 48 | ":statslog-remoteprovisioner-java-gen", |
| 49 | "src/**/*.java" |
| 50 | ], |
Max Bires | e24b782 | 2020-12-03 14:49:58 -0800 | [diff] [blame] | 51 | } |