Bob Badour | 4c7858c | 2021-02-12 15:40:29 -0800 | [diff] [blame^] | 1 | package { |
| 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 | |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "identity_defaults", |
| 12 | cflags: [ |
| 13 | "-Wall", |
| 14 | // "-Werror", |
| 15 | "-Wextra", |
| 16 | "-Wunused", |
David Zeuthen | 472e6c8 | 2020-10-16 11:50:13 -0400 | [diff] [blame] | 17 | "-Wno-deprecated-declarations", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 18 | ], |
| 19 | sanitize: { |
| 20 | misc_undefined : ["integer"], |
| 21 | }, |
| 22 | clang : true, |
| 23 | } |
| 24 | |
| 25 | cc_binary { |
| 26 | name: "credstore", |
| 27 | defaults: ["identity_defaults"], |
| 28 | |
| 29 | srcs: [ |
| 30 | "main.cpp", |
| 31 | "CredentialStore.cpp", |
| 32 | "CredentialStoreFactory.cpp", |
| 33 | "WritableCredential.cpp", |
| 34 | "Credential.cpp", |
| 35 | "CredentialData.cpp", |
| 36 | "Util.cpp", |
| 37 | ], |
| 38 | init_rc: ["credstore.rc"], |
| 39 | shared_libs: [ |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 40 | "libbase", |
| 41 | "libbinder", |
| 42 | "libkeystore_aidl", |
| 43 | "libcredstore_aidl", |
| 44 | "libutils", |
| 45 | "libhidlbase", |
| 46 | "android.hardware.identity-support-lib", |
| 47 | "libkeymaster4support", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 48 | "libkeystore-attestation-application-id", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 49 | ], |
| 50 | static_libs: [ |
Jeongik Cha | 98a5d09 | 2021-01-26 22:35:13 +0900 | [diff] [blame] | 51 | "android.hardware.identity-V3-cpp", |
| 52 | "android.hardware.keymaster-V3-cpp", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 53 | "libcppbor", |
| 54 | ] |
| 55 | } |
| 56 | |
| 57 | filegroup { |
| 58 | name: "credstore_aidl", |
| 59 | srcs: [ |
| 60 | "binder/android/security/identity/ICredential.aidl", |
| 61 | "binder/android/security/identity/IWritableCredential.aidl", |
| 62 | "binder/android/security/identity/ICredentialStore.aidl", |
| 63 | "binder/android/security/identity/AccessControlProfileParcel.aidl", |
| 64 | "binder/android/security/identity/EntryNamespaceParcel.aidl", |
| 65 | "binder/android/security/identity/EntryParcel.aidl", |
| 66 | "binder/android/security/identity/RequestNamespaceParcel.aidl", |
| 67 | "binder/android/security/identity/RequestEntryParcel.aidl", |
| 68 | "binder/android/security/identity/ResultNamespaceParcel.aidl", |
| 69 | "binder/android/security/identity/ResultEntryParcel.aidl", |
| 70 | "binder/android/security/identity/GetEntriesResultParcel.aidl", |
| 71 | "binder/android/security/identity/AuthKeyParcel.aidl", |
| 72 | "binder/android/security/identity/SecurityHardwareInfoParcel.aidl", |
| 73 | "binder/android/security/identity/ICredentialStoreFactory.aidl", |
| 74 | ], |
| 75 | path: "binder", |
| 76 | } |
| 77 | |
| 78 | cc_library_shared { |
| 79 | name: "libcredstore_aidl", |
| 80 | srcs: [ |
| 81 | ":credstore_aidl", |
| 82 | ], |
| 83 | aidl: { |
| 84 | export_aidl_headers: true, |
| 85 | include_dirs: [ |
| 86 | "system/security/identity/binder", |
| 87 | ], |
| 88 | }, |
| 89 | shared_libs: [ |
| 90 | "libbinder", |
| 91 | "libutils", |
| 92 | "libkeymaster4support", |
| 93 | ], |
| 94 | export_shared_lib_headers: [ |
| 95 | "libbinder", |
| 96 | ], |
| 97 | } |