blob: 49e8085ab59b22c63912fdd096ca507ec359d094 [file] [log] [blame]
Dan Willemsen3e963f92018-10-31 10:32:32 -07001//
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
Bob Badourd69ad692021-02-16 19:02:14 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Dan Willemsen3e963f92018-10-31 10:32:32 -070021cc_binary {
22 name: "gatekeeperd",
23 cflags: [
24 "-Wall",
25 "-Wextra",
26 "-Werror",
27 "-Wunused",
28 ],
29 srcs: [
Dan Willemsen3e963f92018-10-31 10:32:32 -070030 "gatekeeperd.cpp",
31 ],
32
33 shared_libs: [
34 "libbinder",
Hasini Gunasinghe6fd56032020-12-08 21:08:13 +000035 "libbinder_ndk",
Dan Willemsen3e963f92018-10-31 10:32:32 -070036 "libgatekeeper",
David Anderson97400bd2019-02-15 15:59:39 -080037 "libgsi",
Dan Willemsen3e963f92018-10-31 10:32:32 -070038 "liblog",
39 "libhardware",
40 "libbase",
41 "libutils",
42 "libcrypto",
43 "libkeystore_aidl",
44 "libkeystore_binder",
45 "libhidlbase",
Dan Willemsen3e963f92018-10-31 10:32:32 -070046 "android.hardware.gatekeeper@1.0",
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070047 "libgatekeeper_aidl",
Jeongik Chad039f7b2021-01-26 22:35:08 +090048 "android.hardware.security.keymint-V1-ndk_platform",
Hasini Gunasinghe6fd56032020-12-08 21:08:13 +000049 "android.security.authorization-ndk_platform",
Dan Willemsen3e963f92018-10-31 10:32:32 -070050 ],
51
52 static_libs: ["libscrypt_static"],
53 include_dirs: ["external/scrypt/lib/crypto"],
54 init_rc: ["gatekeeperd.rc"],
55}
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070056
57filegroup {
58 name: "gatekeeper_aidl",
59 srcs: [
60 "binder/android/service/gatekeeper/IGateKeeperService.aidl",
61 ],
62 path: "binder",
63}
64
65cc_library_shared {
66 name: "libgatekeeper_aidl",
67 srcs: [
68 ":gatekeeper_aidl",
69 "GateKeeperResponse.cpp",
70 ],
71 aidl: {
72 export_aidl_headers: true,
73 include_dirs: [
74 "system/core/gatekeeperd/binder",
75 "frameworks/base/core/java/",
76 ],
77 },
78 export_include_dirs: ["include"],
79 shared_libs: [
80 "libbase",
81 "libbinder",
82 "libcutils",
83 "liblog",
84 "libutils",
85 ],
86 export_shared_lib_headers: [
87 "libbinder",
88 ],
89}