1// 2// Copyright (C) 2015 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_binary { 22 name: "gatekeeperd", 23 cflags: [ 24 "-Wall", 25 "-Wextra", 26 "-Werror", 27 "-Wunused", 28 ], 29 srcs: [ 30 "gatekeeperd.cpp", 31 ], 32 defaults: [ 33 "keymint_use_latest_hal_aidl_ndk_shared", 34 ], 35 shared_libs: [ 36 "libbinder", 37 "libbinder_ndk", 38 "libgatekeeper", 39 "libgsi", 40 "liblog", 41 "libhardware", 42 "libbase", 43 "libutils", 44 "libcrypto", 45 "libhidlbase", 46 "lib_android_keymaster_keymint_utils", 47 "android.hardware.gatekeeper-V1-ndk", 48 "android.hardware.gatekeeper@1.0", 49 "libgatekeeper_aidl", 50 "android.security.authorization-ndk", 51 ], 52 53 static_libs: ["libscrypt_static"], 54 include_dirs: ["external/scrypt/lib/crypto"], 55 init_rc: ["gatekeeperd.rc"], 56} 57 58filegroup { 59 name: "gatekeeper_aidl", 60 srcs: [ 61 "binder/android/service/gatekeeper/IGateKeeperService.aidl", 62 ], 63 path: "binder", 64} 65 66cc_library_shared { 67 name: "libgatekeeper_aidl", 68 srcs: [ 69 ":gatekeeper_aidl", 70 "GateKeeperResponse.cpp", 71 ], 72 aidl: { 73 export_aidl_headers: true, 74 include_dirs: [ 75 "system/core/gatekeeperd/binder", 76 "frameworks/base/core/java/", 77 ], 78 }, 79 export_include_dirs: ["include"], 80 shared_libs: [ 81 "libbase", 82 "libbinder", 83 "libcutils", 84 "liblog", 85 "libutils", 86 ], 87 export_shared_lib_headers: [ 88 "libbinder", 89 ], 90} 91