blob: 838f734fe443734a47c5dc4ec60d8d3d09b9cde3 [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 ],
David Drysdalec5b7d172021-11-22 15:15:57 +000032 defaults: [
33 "keymint_use_latest_hal_aidl_ndk_shared",
34 ],
Dan Willemsen3e963f92018-10-31 10:32:32 -070035 shared_libs: [
36 "libbinder",
Hasini Gunasinghe6fd56032020-12-08 21:08:13 +000037 "libbinder_ndk",
Dan Willemsen3e963f92018-10-31 10:32:32 -070038 "libgatekeeper",
David Anderson97400bd2019-02-15 15:59:39 -080039 "libgsi",
Dan Willemsen3e963f92018-10-31 10:32:32 -070040 "liblog",
41 "libhardware",
42 "libbase",
43 "libutils",
44 "libcrypto",
Dan Willemsen3e963f92018-10-31 10:32:32 -070045 "libhidlbase",
Subrahmanyaman355e9772022-07-21 03:51:30 +000046 "lib_android_keymaster_keymint_utils",
47 "android.hardware.gatekeeper-V1-ndk",
Dan Willemsen3e963f92018-10-31 10:32:32 -070048 "[email protected]",
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070049 "libgatekeeper_aidl",
Jiyong Park14869872021-07-27 12:19:00 +090050 "android.security.authorization-ndk",
Dan Willemsen3e963f92018-10-31 10:32:32 -070051 ],
52
53 static_libs: ["libscrypt_static"],
54 include_dirs: ["external/scrypt/lib/crypto"],
55 init_rc: ["gatekeeperd.rc"],
56}
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070057
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}