xref: /aosp_15_r20/external/android-key-attestation/Android.bp (revision 7ca207924212edeca68cc84bb4fcd356338eb385)
1*7ca20792SAndroid Build Coastguard Worker//
2*7ca20792SAndroid Build Coastguard Worker// Copyright (C) 2023 The Android Open Source Project
3*7ca20792SAndroid Build Coastguard Worker//
4*7ca20792SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*7ca20792SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*7ca20792SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*7ca20792SAndroid Build Coastguard Worker//
8*7ca20792SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*7ca20792SAndroid Build Coastguard Worker//
10*7ca20792SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*7ca20792SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*7ca20792SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*7ca20792SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*7ca20792SAndroid Build Coastguard Worker// limitations under the License.
15*7ca20792SAndroid Build Coastguard Worker//
16*7ca20792SAndroid Build Coastguard Worker
17*7ca20792SAndroid Build Coastguard Workerpackage {
18*7ca20792SAndroid Build Coastguard Worker    default_visibility: ["//visibility:private"],
19*7ca20792SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_android-key-attestation_license"],
20*7ca20792SAndroid Build Coastguard Worker}
21*7ca20792SAndroid Build Coastguard Worker
22*7ca20792SAndroid Build Coastguard Worker// Added automatically by a large-scale-change
23*7ca20792SAndroid Build Coastguard Worker// See: http://go/android-license-faq
24*7ca20792SAndroid Build Coastguard Workerlicense {
25*7ca20792SAndroid Build Coastguard Worker    name: "external_android-key-attestation_license",
26*7ca20792SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
27*7ca20792SAndroid Build Coastguard Worker    license_kinds: [
28*7ca20792SAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
29*7ca20792SAndroid Build Coastguard Worker    ],
30*7ca20792SAndroid Build Coastguard Worker    license_text: [
31*7ca20792SAndroid Build Coastguard Worker        "LICENSE",
32*7ca20792SAndroid Build Coastguard Worker    ],
33*7ca20792SAndroid Build Coastguard Worker}
34*7ca20792SAndroid Build Coastguard Worker
35*7ca20792SAndroid Build Coastguard Workerjava_library_static {
36*7ca20792SAndroid Build Coastguard Worker    name: "android-key-attestation",
37*7ca20792SAndroid Build Coastguard Worker    visibility: [
38*7ca20792SAndroid Build Coastguard Worker        "//cts/tests/tests/keystore",
39*7ca20792SAndroid Build Coastguard Worker        "//cts/common/device-side/device-info",
40*7ca20792SAndroid Build Coastguard Worker        "//packages/apps/DeviceDiagnostics/app/src/main",
41*7ca20792SAndroid Build Coastguard Worker        "//packages/apps/DeviceDiagnostics/DeviceDiagnosticsLib/src/main",
42*7ca20792SAndroid Build Coastguard Worker    ],
43*7ca20792SAndroid Build Coastguard Worker    min_sdk_version: "31",
44*7ca20792SAndroid Build Coastguard Worker    dxflags: ["--multi-dex"],
45*7ca20792SAndroid Build Coastguard Worker    srcs: ["server/src/main/java/**/*.java"],
46*7ca20792SAndroid Build Coastguard Worker    exclude_srcs: ["server/src/main/java/**/KeyAttestationExample.java"],
47*7ca20792SAndroid Build Coastguard Worker    sdk_version: "current",
48*7ca20792SAndroid Build Coastguard Worker    static_libs: [
49*7ca20792SAndroid Build Coastguard Worker        "bouncycastle-unbundled",
50*7ca20792SAndroid Build Coastguard Worker        "error_prone_annotations",
51*7ca20792SAndroid Build Coastguard Worker        "guava",
52*7ca20792SAndroid Build Coastguard Worker    ],
53*7ca20792SAndroid Build Coastguard Worker    libs: [
54*7ca20792SAndroid Build Coastguard Worker        "gson",
55*7ca20792SAndroid Build Coastguard Worker    ],
56*7ca20792SAndroid Build Coastguard Worker}
57