1*e1997b9aSAndroid Build Coastguard Workerpackage { 2*e1997b9aSAndroid Build Coastguard Worker // See: http://go/android-license-faq 3*e1997b9aSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 4*e1997b9aSAndroid Build Coastguard Worker // all of the 'license_kinds' from "system_security_license" 5*e1997b9aSAndroid Build Coastguard Worker // to get the below license kinds: 6*e1997b9aSAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 7*e1997b9aSAndroid Build Coastguard Worker // SPDX-license-identifier-BSD 8*e1997b9aSAndroid Build Coastguard Worker default_applicable_licenses: ["system_security_license"], 9*e1997b9aSAndroid Build Coastguard Worker} 10*e1997b9aSAndroid Build Coastguard Worker 11*e1997b9aSAndroid Build Coastguard Workercc_defaults { 12*e1997b9aSAndroid Build Coastguard Worker name: "keystore_defaults", 13*e1997b9aSAndroid Build Coastguard Worker 14*e1997b9aSAndroid Build Coastguard Worker cflags: [ 15*e1997b9aSAndroid Build Coastguard Worker "-Wall", 16*e1997b9aSAndroid Build Coastguard Worker "-Werror", 17*e1997b9aSAndroid Build Coastguard Worker "-Wextra", 18*e1997b9aSAndroid Build Coastguard Worker "-Wunused", 19*e1997b9aSAndroid Build Coastguard Worker ], 20*e1997b9aSAndroid Build Coastguard Worker 21*e1997b9aSAndroid Build Coastguard Worker sanitize: { 22*e1997b9aSAndroid Build Coastguard Worker misc_undefined: [ 23*e1997b9aSAndroid Build Coastguard Worker "signed-integer-overflow", 24*e1997b9aSAndroid Build Coastguard Worker "unsigned-integer-overflow", 25*e1997b9aSAndroid Build Coastguard Worker "shift", 26*e1997b9aSAndroid Build Coastguard Worker "integer-divide-by-zero", 27*e1997b9aSAndroid Build Coastguard Worker "implicit-unsigned-integer-truncation", 28*e1997b9aSAndroid Build Coastguard Worker // BUG: 123630767 29*e1997b9aSAndroid Build Coastguard Worker //"implicit-signed-integer-truncation", 30*e1997b9aSAndroid Build Coastguard Worker "implicit-integer-sign-change", 31*e1997b9aSAndroid Build Coastguard Worker ], 32*e1997b9aSAndroid Build Coastguard Worker }, 33*e1997b9aSAndroid Build Coastguard Worker 34*e1997b9aSAndroid Build Coastguard Worker} 35*e1997b9aSAndroid Build Coastguard Worker 36*e1997b9aSAndroid Build Coastguard Workercc_binary { 37*e1997b9aSAndroid Build Coastguard Worker name: "keystore_cli_v2", 38*e1997b9aSAndroid Build Coastguard Worker defaults: [ 39*e1997b9aSAndroid Build Coastguard Worker "keystore_defaults", 40*e1997b9aSAndroid Build Coastguard Worker "keystore2_use_latest_aidl_ndk_shared", 41*e1997b9aSAndroid Build Coastguard Worker ], 42*e1997b9aSAndroid Build Coastguard Worker 43*e1997b9aSAndroid Build Coastguard Worker cflags: [ 44*e1997b9aSAndroid Build Coastguard Worker "-DKEYMASTER_NAME_TAGS", 45*e1997b9aSAndroid Build Coastguard Worker "-Wno-unused-parameter", 46*e1997b9aSAndroid Build Coastguard Worker ], 47*e1997b9aSAndroid Build Coastguard Worker srcs: [ 48*e1997b9aSAndroid Build Coastguard Worker "keystore_cli_v2.cpp", 49*e1997b9aSAndroid Build Coastguard Worker "keystore_client.proto", 50*e1997b9aSAndroid Build Coastguard Worker ], 51*e1997b9aSAndroid Build Coastguard Worker shared_libs: [ 52*e1997b9aSAndroid Build Coastguard Worker "android.security.apc-ndk", 53*e1997b9aSAndroid Build Coastguard Worker "libbinder", 54*e1997b9aSAndroid Build Coastguard Worker "libbinder_ndk", 55*e1997b9aSAndroid Build Coastguard Worker "libchrome", 56*e1997b9aSAndroid Build Coastguard Worker "libcrypto", 57*e1997b9aSAndroid Build Coastguard Worker "libkeymint_support", 58*e1997b9aSAndroid Build Coastguard Worker "libprotobuf-cpp-lite", 59*e1997b9aSAndroid Build Coastguard Worker "libutils", 60*e1997b9aSAndroid Build Coastguard Worker ], 61*e1997b9aSAndroid Build Coastguard Worker 62*e1997b9aSAndroid Build Coastguard Worker local_include_dirs: ["include"], 63*e1997b9aSAndroid Build Coastguard Worker} 64*e1997b9aSAndroid Build Coastguard Worker 65*e1997b9aSAndroid Build Coastguard Worker// Library used by both keystore and credstore for generating the ASN.1 stored 66*e1997b9aSAndroid Build Coastguard Worker// in Tag::ATTESTATION_APPLICATION_ID 67*e1997b9aSAndroid Build Coastguard Workercc_library { 68*e1997b9aSAndroid Build Coastguard Worker name: "libkeystore-attestation-application-id", 69*e1997b9aSAndroid Build Coastguard Worker defaults: [ 70*e1997b9aSAndroid Build Coastguard Worker "keystore_defaults", 71*e1997b9aSAndroid Build Coastguard Worker "keystore2_use_latest_aidl_ndk_shared", 72*e1997b9aSAndroid Build Coastguard Worker ], 73*e1997b9aSAndroid Build Coastguard Worker 74*e1997b9aSAndroid Build Coastguard Worker srcs: [ 75*e1997b9aSAndroid Build Coastguard Worker "keystore_attestation_id.cpp", 76*e1997b9aSAndroid Build Coastguard Worker ], 77*e1997b9aSAndroid Build Coastguard Worker shared_libs: [ 78*e1997b9aSAndroid Build Coastguard Worker "android.security.aaid_aidl-cpp", 79*e1997b9aSAndroid Build Coastguard Worker "libbase", 80*e1997b9aSAndroid Build Coastguard Worker "libbinder", 81*e1997b9aSAndroid Build Coastguard Worker "libcrypto", 82*e1997b9aSAndroid Build Coastguard Worker "libhidlbase", 83*e1997b9aSAndroid Build Coastguard Worker "liblog", 84*e1997b9aSAndroid Build Coastguard Worker "libutils", 85*e1997b9aSAndroid Build Coastguard Worker ], 86*e1997b9aSAndroid Build Coastguard Worker 87*e1997b9aSAndroid Build Coastguard Worker export_include_dirs: ["include"], 88*e1997b9aSAndroid Build Coastguard Worker} 89*e1997b9aSAndroid Build Coastguard Worker 90*e1997b9aSAndroid Build Coastguard Worker// Library for keystore clients using the WiFi HIDL interface 91*e1997b9aSAndroid Build Coastguard Workercc_library { 92*e1997b9aSAndroid Build Coastguard Worker name: "libkeystore-wifi-hidl", 93*e1997b9aSAndroid Build Coastguard Worker defaults: ["keystore_defaults"], 94*e1997b9aSAndroid Build Coastguard Worker 95*e1997b9aSAndroid Build Coastguard Worker srcs: ["keystore_get_wifi_hidl.cpp"], 96*e1997b9aSAndroid Build Coastguard Worker shared_libs: [ 97*e1997b9aSAndroid Build Coastguard Worker "[email protected]", 98*e1997b9aSAndroid Build Coastguard Worker "libbase", 99*e1997b9aSAndroid Build Coastguard Worker "libhidlbase", 100*e1997b9aSAndroid Build Coastguard Worker "liblog", 101*e1997b9aSAndroid Build Coastguard Worker "libutils", 102*e1997b9aSAndroid Build Coastguard Worker ], 103*e1997b9aSAndroid Build Coastguard Worker 104*e1997b9aSAndroid Build Coastguard Worker export_include_dirs: ["include"], 105*e1997b9aSAndroid Build Coastguard Worker 106*e1997b9aSAndroid Build Coastguard Worker vendor: true, 107*e1997b9aSAndroid Build Coastguard Worker} 108