blob: 2d9a820254f871f14a678deb3700d3f8867461aa [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
17cc_binary {
18 name: "gatekeeperd",
19 cflags: [
20 "-Wall",
21 "-Wextra",
22 "-Werror",
23 "-Wunused",
24 ],
25 srcs: [
Dan Willemsen3e963f92018-10-31 10:32:32 -070026 "gatekeeperd.cpp",
27 ],
28
29 shared_libs: [
30 "libbinder",
Hasini Gunasinghe6fd56032020-12-08 21:08:13 +000031 "libbinder_ndk",
Dan Willemsen3e963f92018-10-31 10:32:32 -070032 "libgatekeeper",
David Anderson97400bd2019-02-15 15:59:39 -080033 "libgsi",
Dan Willemsen3e963f92018-10-31 10:32:32 -070034 "liblog",
35 "libhardware",
36 "libbase",
37 "libutils",
38 "libcrypto",
39 "libkeystore_aidl",
40 "libkeystore_binder",
41 "libhidlbase",
Dan Willemsen3e963f92018-10-31 10:32:32 -070042 "android.hardware.gatekeeper@1.0",
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070043 "libgatekeeper_aidl",
Hasini Gunasinghe6fd56032020-12-08 21:08:13 +000044 "android.hardware.security.keymint-unstable-ndk_platform",
45 "android.security.authorization-ndk_platform",
Dan Willemsen3e963f92018-10-31 10:32:32 -070046 ],
47
48 static_libs: ["libscrypt_static"],
49 include_dirs: ["external/scrypt/lib/crypto"],
50 init_rc: ["gatekeeperd.rc"],
51}
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070052
53filegroup {
54 name: "gatekeeper_aidl",
55 srcs: [
56 "binder/android/service/gatekeeper/IGateKeeperService.aidl",
57 ],
58 path: "binder",
59}
60
61cc_library_shared {
62 name: "libgatekeeper_aidl",
63 srcs: [
64 ":gatekeeper_aidl",
65 "GateKeeperResponse.cpp",
66 ],
67 aidl: {
68 export_aidl_headers: true,
69 include_dirs: [
70 "system/core/gatekeeperd/binder",
71 "frameworks/base/core/java/",
72 ],
73 },
74 export_include_dirs: ["include"],
75 shared_libs: [
76 "libbase",
77 "libbinder",
78 "libcutils",
79 "liblog",
80 "libutils",
81 ],
82 export_shared_lib_headers: [
83 "libbinder",
84 ],
85}