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 17cc_binary { 18 name: "gatekeeperd", 19 cflags: [ 20 "-Wall", 21 "-Wextra", 22 "-Werror", 23 "-Wunused", 24 ], 25 srcs: [ 26 "gatekeeperd.cpp", 27 ], 28 29 shared_libs: [ 30 "libbinder", 31 "libgatekeeper", 32 "libgsi", 33 "liblog", 34 "libhardware", 35 "libbase", 36 "libutils", 37 "libcrypto", 38 "libkeystore_aidl", 39 "libkeystore_binder", 40 "libhidlbase", 41 "android.hardware.gatekeeper@1.0", 42 "libgatekeeper_aidl", 43 ], 44 45 static_libs: ["libscrypt_static"], 46 include_dirs: ["external/scrypt/lib/crypto"], 47 init_rc: ["gatekeeperd.rc"], 48} 49 50filegroup { 51 name: "gatekeeper_aidl", 52 srcs: [ 53 "binder/android/service/gatekeeper/IGateKeeperService.aidl", 54 ], 55 path: "binder", 56} 57 58cc_library_shared { 59 name: "libgatekeeper_aidl", 60 srcs: [ 61 ":gatekeeper_aidl", 62 "GateKeeperResponse.cpp", 63 ], 64 aidl: { 65 export_aidl_headers: true, 66 include_dirs: [ 67 "system/core/gatekeeperd/binder", 68 "frameworks/base/core/java/", 69 ], 70 }, 71 export_include_dirs: ["include"], 72 shared_libs: [ 73 "libbase", 74 "libbinder", 75 "libcutils", 76 "liblog", 77 "libutils", 78 ], 79 export_shared_lib_headers: [ 80 "libbinder", 81 ], 82} 83