blob: 778e08c998c4666597ba842ef2994cf761a28ed7 [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",
31 "libgatekeeper",
David Anderson97400bd2019-02-15 15:59:39 -080032 "libgsi",
Dan Willemsen3e963f92018-10-31 10:32:32 -070033 "liblog",
34 "libhardware",
35 "libbase",
36 "libutils",
37 "libcrypto",
38 "libkeystore_aidl",
39 "libkeystore_binder",
40 "libhidlbase",
41 "libhidltransport",
42 "libhwbinder",
43 "android.hardware.gatekeeper@1.0",
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070044 "libgatekeeper_aidl",
Dan Willemsen3e963f92018-10-31 10:32:32 -070045 ],
46
47 static_libs: ["libscrypt_static"],
48 include_dirs: ["external/scrypt/lib/crypto"],
49 init_rc: ["gatekeeperd.rc"],
50}
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070051
52filegroup {
53 name: "gatekeeper_aidl",
54 srcs: [
55 "binder/android/service/gatekeeper/IGateKeeperService.aidl",
56 ],
57 path: "binder",
58}
59
60cc_library_shared {
61 name: "libgatekeeper_aidl",
62 srcs: [
63 ":gatekeeper_aidl",
64 "GateKeeperResponse.cpp",
65 ],
66 aidl: {
67 export_aidl_headers: true,
68 include_dirs: [
69 "system/core/gatekeeperd/binder",
70 "frameworks/base/core/java/",
71 ],
72 },
73 export_include_dirs: ["include"],
74 shared_libs: [
75 "libbase",
76 "libbinder",
77 "libcutils",
78 "liblog",
79 "libutils",
80 ],
81 export_shared_lib_headers: [
82 "libbinder",
83 ],
84}