1// Copyright (C) 2015 The Android Open-Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_binary {
20    name: "android.hardware.gatekeeper-service.remote",
21    defaults: ["cuttlefish_guest_only"],
22    vendor: true,
23    relative_install_path: "hw",
24    installable: false, // installed in APEX
25
26    srcs: [
27        "remote_gatekeeper.cpp",
28        "service.cpp",
29    ],
30
31    cflags: [
32        "-fvisibility=hidden",
33        "-Wall",
34        "-Werror",
35    ],
36
37    static_libs: [
38        "libgflags",
39    ],
40
41    shared_libs: [
42        "android.hardware.gatekeeper-V1-ndk",
43        "libbinder_ndk",
44        "libhardware",
45        "libbase",
46        "libcuttlefish_fs",
47        "libcuttlefish_security",
48        "libcuttlefish_transport",
49        "libhidlbase",
50        "libgatekeeper",
51        "libutils",
52        "liblog",
53        "libcutils",
54        "libtrusty",
55    ],
56}
57
58prebuilt_etc {
59    name: "android.hardware.gatekeeper-service.remote.xml",
60    src: "android.hardware.gatekeeper-service.remote.xml",
61    sub_dir: "vintf",
62    installable: false,
63}
64
65prebuilt_etc {
66    name: "android.hardware.gatekeeper-service.remote.rc",
67    src: "android.hardware.gatekeeper-service.remote.rc",
68    installable: false,
69}
70
71apex {
72    name: "com.android.hardware.gatekeeper.cf_remote",
73    manifest: "apex_manifest.json",
74    file_contexts: "apex_file_contexts",
75    key: "com.google.cf.apex.key",
76    certificate: ":com.google.cf.apex.certificate",
77    vendor: true,
78    updatable: false,
79
80    binaries: [
81        "android.hardware.gatekeeper-service.remote",
82    ],
83    prebuilts: [
84        "android.hardware.gatekeeper-service.remote.xml",
85        "android.hardware.gatekeeper-service.remote.rc",
86    ],
87}
88