blob: 27a645288d75b39519eacfa70fe753cab35c5fd4 [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",
Dan Willemsen3e963f92018-10-31 10:32:32 -070041 "android.hardware.gatekeeper@1.0",
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070042 "libgatekeeper_aidl",
Dan Willemsen3e963f92018-10-31 10:32:32 -070043 ],
44
45 static_libs: ["libscrypt_static"],
46 include_dirs: ["external/scrypt/lib/crypto"],
47 init_rc: ["gatekeeperd.rc"],
48}
Janis Danisevskis3a1eb672019-03-29 11:14:31 -070049
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}