| 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", | 
| Hasini Gunasinghe | 1b531b9 | 2021-03-02 00:34:58 +0000 | [diff] [blame] | 42 | "libbinder_ndk", | 
| Hasini Gunasinghe | 8c9853f | 2021-03-09 02:55:57 +0000 | [diff] [blame] | 43 | "android.hardware.keymaster@4.0", | 
| David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 44 | "libcredstore_aidl", | 
| Max Bires | 5bb33f4 | 2021-03-11 00:44:06 -0800 | [diff] [blame] | 45 | "libcrypto", | 
| David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 46 | "libutils", | 
|  | 47 | "libhidlbase", | 
|  | 48 | "android.hardware.identity-support-lib", | 
|  | 49 | "libkeymaster4support", | 
| David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 50 | "libkeystore-attestation-application-id", | 
| Jiyong Park | 0d61dd6 | 2021-07-27 12:20:26 +0900 | [diff] [blame] | 51 | "android.hardware.security.keymint-V1-ndk", | 
|  | 52 | "android.security.authorization-ndk", | 
| David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 53 | ], | 
|  | 54 | static_libs: [ | 
| Jeongik Cha | 98a5d09 | 2021-01-26 22:35:13 +0900 | [diff] [blame] | 55 | "android.hardware.identity-V3-cpp", | 
|  | 56 | "android.hardware.keymaster-V3-cpp", | 
| Max Bires | 5bb33f4 | 2021-03-11 00:44:06 -0800 | [diff] [blame] | 57 | "libcppbor_external", | 
| David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 58 | ] | 
|  | 59 | } | 
|  | 60 |  | 
|  | 61 | filegroup { | 
|  | 62 | name: "credstore_aidl", | 
|  | 63 | srcs: [ | 
|  | 64 | "binder/android/security/identity/ICredential.aidl", | 
|  | 65 | "binder/android/security/identity/IWritableCredential.aidl", | 
|  | 66 | "binder/android/security/identity/ICredentialStore.aidl", | 
|  | 67 | "binder/android/security/identity/AccessControlProfileParcel.aidl", | 
|  | 68 | "binder/android/security/identity/EntryNamespaceParcel.aidl", | 
|  | 69 | "binder/android/security/identity/EntryParcel.aidl", | 
|  | 70 | "binder/android/security/identity/RequestNamespaceParcel.aidl", | 
|  | 71 | "binder/android/security/identity/RequestEntryParcel.aidl", | 
|  | 72 | "binder/android/security/identity/ResultNamespaceParcel.aidl", | 
|  | 73 | "binder/android/security/identity/ResultEntryParcel.aidl", | 
|  | 74 | "binder/android/security/identity/GetEntriesResultParcel.aidl", | 
|  | 75 | "binder/android/security/identity/AuthKeyParcel.aidl", | 
|  | 76 | "binder/android/security/identity/SecurityHardwareInfoParcel.aidl", | 
|  | 77 | "binder/android/security/identity/ICredentialStoreFactory.aidl", | 
|  | 78 | ], | 
|  | 79 | path: "binder", | 
|  | 80 | } | 
|  | 81 |  | 
|  | 82 | cc_library_shared { | 
|  | 83 | name: "libcredstore_aidl", | 
|  | 84 | srcs: [ | 
|  | 85 | ":credstore_aidl", | 
|  | 86 | ], | 
|  | 87 | aidl: { | 
|  | 88 | export_aidl_headers: true, | 
|  | 89 | include_dirs: [ | 
|  | 90 | "system/security/identity/binder", | 
|  | 91 | ], | 
|  | 92 | }, | 
|  | 93 | shared_libs: [ | 
|  | 94 | "libbinder", | 
|  | 95 | "libutils", | 
|  | 96 | "libkeymaster4support", | 
|  | 97 | ], | 
|  | 98 | export_shared_lib_headers: [ | 
|  | 99 | "libbinder", | 
|  | 100 | ], | 
|  | 101 | } |