• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_binary {
22    name: "gatekeeperd",
23    cflags: [
24        "-Wall",
25        "-Wextra",
26        "-Werror",
27        "-Wunused",
28    ],
29    srcs: [
30        "gatekeeperd.cpp",
31    ],
32
33    shared_libs: [
34        "libbinder",
35        "libbinder_ndk",
36        "libgatekeeper",
37        "libgsi",
38        "liblog",
39        "libhardware",
40        "libbase",
41        "libutils",
42        "libcrypto",
43        "libhidlbase",
44        "android.hardware.gatekeeper@1.0",
45        "libgatekeeper_aidl",
46        "android.hardware.security.keymint-V1-ndk_platform",
47        "android.security.authorization-ndk_platform",
48    ],
49
50    static_libs: ["libscrypt_static"],
51    include_dirs: ["external/scrypt/lib/crypto"],
52    init_rc: ["gatekeeperd.rc"],
53}
54
55filegroup {
56    name: "gatekeeper_aidl",
57    srcs: [
58        "binder/android/service/gatekeeper/IGateKeeperService.aidl",
59    ],
60    path: "binder",
61}
62
63cc_library_shared {
64    name: "libgatekeeper_aidl",
65    srcs: [
66        ":gatekeeper_aidl",
67        "GateKeeperResponse.cpp",
68    ],
69    aidl: {
70        export_aidl_headers: true,
71        include_dirs: [
72            "system/core/gatekeeperd/binder",
73            "frameworks/base/core/java/",
74        ],
75    },
76    export_include_dirs: ["include"],
77    shared_libs: [
78        "libbase",
79        "libbinder",
80        "libcutils",
81        "liblog",
82        "libutils",
83    ],
84    export_shared_lib_headers: [
85        "libbinder",
86    ],
87}
88