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