blob: 25bda3e7a6ad2e9a4f5c2ef8e6e259a7b0dc396a [file] [log] [blame]
Yu Shan562c0f82022-08-04 17:10:38 -07001/*
2 * Copyright (C) 2022 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: "android.hardware.automotive.remoteaccess@V1-default-service",
23 vendor: true,
24 vintf_fragments: ["remoteaccess-default-service.xml"],
25 init_rc: ["remoteaccess-default-service.rc"],
26 relative_install_path: "hw",
27 srcs: ["src/RemoteAccessImpl.cpp"],
28 whole_static_libs: [
29 "RemoteAccessService",
30 ],
31 shared_libs: [
32 "libbinder_ndk",
33 "liblog",
34 "libutils",
Yu Shane2974562022-08-10 18:37:03 -070035 "libgrpc++",
36 "libprotobuf-cpp-full",
37 ],
38 cflags: [
39 "-Wno-unused-parameter",
Yu Shana725df42022-09-12 14:56:32 -070040 "-DGRPC_SERVICE_ADDRESS=\"localhost:50051\"",
Yu Shan562c0f82022-08-04 17:10:38 -070041 ],
42}
43
44cc_library {
45 name: "RemoteAccessService",
46 vendor: true,
47 local_include_dirs: ["include"],
48 export_include_dirs: ["include"],
49 srcs: [
50 "src/RemoteAccessService.cpp",
51 ],
52 whole_static_libs: [
53 "android.hardware.automotive.remoteaccess-V1-ndk",
Yu Shane2974562022-08-10 18:37:03 -070054 "wakeup_client_protos",
Yu Shan562c0f82022-08-04 17:10:38 -070055 ],
56 shared_libs: [
Yu Shane2974562022-08-10 18:37:03 -070057 "libbase",
Yu Shan562c0f82022-08-04 17:10:38 -070058 "libbinder_ndk",
59 "liblog",
60 "libutils",
Yu Shane2974562022-08-10 18:37:03 -070061 "libgrpc++",
62 "libprotobuf-cpp-full",
63 ],
64 cflags: [
65 "-Wno-unused-parameter",
Yu Shan562c0f82022-08-04 17:10:38 -070066 ],
67}