• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_security_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_security_license"],
8}
9
10cc_defaults {
11    name: "identity_defaults",
12    cflags: [
13        "-Wall",
14        // "-Werror",
15        "-Wextra",
16        "-Wunused",
17        "-Wno-deprecated-declarations",
18    ],
19    sanitize: {
20        misc_undefined : ["integer"],
21    },
22    clang : true,
23}
24
25cc_binary {
26    name: "credstore",
27    defaults: [
28        "identity_defaults",
29        "keymint_use_latest_hal_aidl_ndk_shared",
30        "keymint_use_latest_hal_aidl_cpp_static",
31    ],
32
33    srcs: [
34        "main.cpp",
35        "CredentialStore.cpp",
36        "CredentialStoreFactory.cpp",
37        "WritableCredential.cpp",
38        "Credential.cpp",
39        "CredentialData.cpp",
40        "Session.cpp",
41        "Util.cpp",
42    ],
43    init_rc: ["credstore.rc"],
44    shared_libs: [
45        "libbase",
46        "libbinder",
47        "libbinder_ndk",
48        "android.hardware.keymaster@4.0",
49        "libcredstore_aidl",
50        "libcrypto",
51        "libutils",
52        "libhidlbase",
53        "android.hardware.identity-support-lib",
54        "libkeymaster4support",
55        "libkeystore-attestation-application-id",
56        "android.security.authorization-ndk",
57        "android.security.remoteprovisioning-cpp",
58        "libutilscallstack",
59    ],
60    static_libs: [
61        "android.hardware.identity-V4-cpp",
62        "android.hardware.keymaster-V3-cpp",
63        "libcppbor_external",
64    ],
65}
66
67filegroup {
68    name: "credstore_aidl",
69    srcs: [
70        "binder/android/security/identity/ICredential.aidl",
71        "binder/android/security/identity/IWritableCredential.aidl",
72        "binder/android/security/identity/ICredentialStore.aidl",
73        "binder/android/security/identity/AccessControlProfileParcel.aidl",
74        "binder/android/security/identity/EntryNamespaceParcel.aidl",
75        "binder/android/security/identity/EntryParcel.aidl",
76        "binder/android/security/identity/RequestNamespaceParcel.aidl",
77        "binder/android/security/identity/RequestEntryParcel.aidl",
78        "binder/android/security/identity/ResultNamespaceParcel.aidl",
79        "binder/android/security/identity/ResultEntryParcel.aidl",
80        "binder/android/security/identity/GetEntriesResultParcel.aidl",
81        "binder/android/security/identity/AuthKeyParcel.aidl",
82        "binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
83        "binder/android/security/identity/ICredentialStoreFactory.aidl",
84        "binder/android/security/identity/ISession.aidl",
85    ],
86    path: "binder",
87}
88
89cc_library_shared {
90    name: "libcredstore_aidl",
91    srcs: [
92        ":credstore_aidl",
93        ],
94    aidl: {
95        export_aidl_headers: true,
96        include_dirs: [
97            "system/security/identity/binder",
98        ],
99    },
100    shared_libs: [
101        "libbinder",
102        "libutils",
103        "libkeymaster4support",
104    ],
105    export_shared_lib_headers: [
106        "libbinder",
107    ],
108}
109