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 | }, |
Alix | cb159ff | 2022-04-18 03:59:35 +0000 | [diff] [blame] | 22 | |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | cc_binary { |
| 26 | name: "credstore", |
David Drysdale | bdb232d | 2021-11-22 14:41:18 +0000 | [diff] [blame] | 27 | defaults: [ |
| 28 | "identity_defaults", |
Tri Vo | c5ad195 | 2022-09-06 17:16:42 -0700 | [diff] [blame] | 29 | "identity_use_latest_hal_aidl_cpp_static", |
David Drysdale | bdb232d | 2021-11-22 14:41:18 +0000 | [diff] [blame] | 30 | "keymint_use_latest_hal_aidl_ndk_shared", |
Seth Moore | 07152b9 | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 31 | "keymint_use_latest_hal_aidl_cpp_static", |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 32 | "android.hardware.identity-support-lib-deps", |
David Drysdale | bdb232d | 2021-11-22 14:41:18 +0000 | [diff] [blame] | 33 | ], |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 34 | |
| 35 | srcs: [ |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 36 | "Credential.cpp", |
| 37 | "CredentialData.cpp", |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 38 | "CredentialStore.cpp", |
| 39 | "CredentialStoreFactory.cpp", |
David Zeuthen | 045a2c8 | 2021-09-11 13:52:17 -0400 | [diff] [blame] | 40 | "Session.cpp", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 41 | "Util.cpp", |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 42 | "WritableCredential.cpp", |
| 43 | "main.cpp", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 44 | ], |
| 45 | init_rc: ["credstore.rc"], |
| 46 | shared_libs: [ |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 47 | "android.hardware.keymaster@4.0", |
| 48 | "android.security.authorization-ndk", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 49 | "libbase", |
| 50 | "libbinder", |
Hasini Gunasinghe | 1b531b9 | 2021-03-02 00:34:58 +0000 | [diff] [blame] | 51 | "libbinder_ndk", |
Max Bires | 5bb33f4 | 2021-03-11 00:44:06 -0800 | [diff] [blame] | 52 | "libcrypto", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 53 | "libhidlbase", |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 54 | "liblog", |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 55 | "libutils", |
David Zeuthen | 045a2c8 | 2021-09-11 13:52:17 -0400 | [diff] [blame] | 56 | "libutilscallstack", |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 57 | "libvintf", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 58 | ], |
| 59 | static_libs: [ |
Jiyong Park | 2c2466d | 2022-03-22 14:52:06 +0900 | [diff] [blame] | 60 | "android.hardware.keymaster-V3-cpp", |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 61 | "android.hardware.identity-support-lib", |
| 62 | "android.hardware.security.rkp-V3-cpp", |
Tri Vo | 3ab6f05 | 2022-11-22 10:26:16 -0800 | [diff] [blame] | 63 | "android.security.rkp_aidl-cpp", |
Max Bires | 5bb33f4 | 2021-03-11 00:44:06 -0800 | [diff] [blame] | 64 | "libcppbor_external", |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 65 | "libcredstore_aidl", |
| 66 | "libkeymaster4support", |
| 67 | "libkeystore-attestation-application-id", |
| 68 | "librkp_support", |
David Drysdale | bdb232d | 2021-11-22 14:41:18 +0000 | [diff] [blame] | 69 | ], |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | filegroup { |
| 73 | name: "credstore_aidl", |
| 74 | srcs: [ |
| 75 | "binder/android/security/identity/ICredential.aidl", |
| 76 | "binder/android/security/identity/IWritableCredential.aidl", |
| 77 | "binder/android/security/identity/ICredentialStore.aidl", |
| 78 | "binder/android/security/identity/AccessControlProfileParcel.aidl", |
| 79 | "binder/android/security/identity/EntryNamespaceParcel.aidl", |
| 80 | "binder/android/security/identity/EntryParcel.aidl", |
| 81 | "binder/android/security/identity/RequestNamespaceParcel.aidl", |
| 82 | "binder/android/security/identity/RequestEntryParcel.aidl", |
| 83 | "binder/android/security/identity/ResultNamespaceParcel.aidl", |
| 84 | "binder/android/security/identity/ResultEntryParcel.aidl", |
| 85 | "binder/android/security/identity/GetEntriesResultParcel.aidl", |
| 86 | "binder/android/security/identity/AuthKeyParcel.aidl", |
| 87 | "binder/android/security/identity/SecurityHardwareInfoParcel.aidl", |
| 88 | "binder/android/security/identity/ICredentialStoreFactory.aidl", |
David Zeuthen | 045a2c8 | 2021-09-11 13:52:17 -0400 | [diff] [blame] | 89 | "binder/android/security/identity/ISession.aidl", |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 90 | ], |
| 91 | path: "binder", |
| 92 | } |
| 93 | |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 94 | cc_library_static { |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 95 | name: "libcredstore_aidl", |
| 96 | srcs: [ |
| 97 | ":credstore_aidl", |
| 98 | ], |
| 99 | aidl: { |
| 100 | export_aidl_headers: true, |
| 101 | include_dirs: [ |
| 102 | "system/security/identity/binder", |
| 103 | ], |
| 104 | }, |
| 105 | shared_libs: [ |
| 106 | "libbinder", |
| 107 | "libutils", |
Devin Moore | e1a6f71 | 2023-05-23 23:19:49 +0000 | [diff] [blame^] | 108 | ], |
| 109 | static_libs: [ |
David Zeuthen | ab3e565 | 2019-10-28 13:32:48 -0400 | [diff] [blame] | 110 | "libkeymaster4support", |
| 111 | ], |
| 112 | export_shared_lib_headers: [ |
| 113 | "libbinder", |
| 114 | ], |
| 115 | } |