blob: 0b43754205072ada352dc29266b16ce7c154a478 [file] [log] [blame]
Steven Morelandc5c19372017-05-05 17:16:10 -07001// 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//
15
16// WARNING: Everything listed here will be built on ALL platforms,
17// including x86, the emulator, and the SDK. Modules must be uniquely
18// named (liblights.panda), and must build everywhere, or limit themselves
19// to only building on ARM if they include assembly. Individual makefiles
20// are responsible for having their own logic, for fine-grained control.
21
Bob Badourd69ad692021-02-16 19:02:14 -080022package {
23 default_applicable_licenses: ["Android-Apache-2.0"],
24}
25
Janis Danisevskis7daa66a2019-06-06 22:05:41 -070026cc_binary {
David Drysdaled0149e82023-02-03 18:25:03 +000027 name: "android.hardware.gatekeeper-service.trusty",
Hung-ying Tyan063a3fa2017-07-28 19:09:33 +080028 vendor: true,
Steven Morelandc5c19372017-05-05 17:16:10 -070029 relative_install_path: "hw",
David Drysdaled0149e82023-02-03 18:25:03 +000030 init_rc: ["android.hardware.gatekeeper-service.trusty.rc"],
Steven Morelandc5c19372017-05-05 17:16:10 -070031
32 srcs: [
Janis Danisevskis7daa66a2019-06-06 22:05:41 -070033 "service.cpp",
Steven Morelandc5c19372017-05-05 17:16:10 -070034 "trusty_gatekeeper_ipc.c",
35 "trusty_gatekeeper.cpp",
36 ],
37
38 cflags: [
39 "-fvisibility=hidden",
40 "-Wall",
41 "-Werror",
42 ],
43
David Drysdaled0149e82023-02-03 18:25:03 +000044 static_libs: [
45 "libgflags",
46 ],
47
Steven Morelandc5c19372017-05-05 17:16:10 -070048 shared_libs: [
David Drysdaled0149e82023-02-03 18:25:03 +000049 "android.hardware.gatekeeper-V1-ndk",
Janis Danisevskis7daa66a2019-06-06 22:05:41 -070050 "libbase",
David Drysdaled0149e82023-02-03 18:25:03 +000051 "libbinder_ndk",
Steven Morelandc5c19372017-05-05 17:16:10 -070052 "libgatekeeper",
David Drysdaled0149e82023-02-03 18:25:03 +000053 "libhardware",
Janis Danisevskis7daa66a2019-06-06 22:05:41 -070054 "libutils",
Steven Morelandc5c19372017-05-05 17:16:10 -070055 "liblog",
56 "libcutils",
57 "libtrusty",
58 ],
Janis Danisevskis7daa66a2019-06-06 22:05:41 -070059
David Drysdaled0149e82023-02-03 18:25:03 +000060 vintf_fragments: ["android.hardware.gatekeeper-service.trusty.xml"],
Steven Morelandc5c19372017-05-05 17:16:10 -070061}