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