1//
2// Copyright (C) 2018 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
16cc_binary {
17    name: "android.hardware.keymaster@4.0-service.citadel",
18    init_rc: ["android.hardware.keymaster@4.0-service.citadel.rc"],
19
20    srcs: ["service.cpp"],
21
22    required: ["citadeld"],
23    header_libs: ["nos_headers"],
24    shared_libs: [
25        "libbase",
26        "libhidlbase",
27        "libhidltransport",
28        "libnos",
29        "libnosprotos",
30        "libutils",
31        "libprotobuf-cpp-full",
32        "android.hardware.keymaster@4.0",
33        "android.hardware.keymaster@4.0-impl.nos",
34        "libnos_citadeld_proxy",
35        "nos_app_keymaster",
36    ],
37
38    relative_install_path: "hw",
39
40    cflags: [
41        "-pedantic",
42        "-Wall",
43        "-Wextra",
44        "-Werror",
45        "-Wno-zero-length-array",
46    ],
47    conlyflags: ["-std=c11"],
48    vendor: true,
49    owner: "google",
50
51}
52