1// Copyright (C) 2022 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_team: "trendy_team_aaos_framework",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "hardware_interfaces_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["hardware_interfaces_license"],
23}
24
25cc_binary {
26    name: "TestWakeupClientServer",
27    vendor: true,
28    srcs: ["src/*.cpp"],
29    local_include_dirs: ["include"],
30    shared_libs: [
31        "libbase",
32        "libutils",
33        "libgrpc++",
34        "libprotobuf-cpp-full",
35        "//hardware/interfaces/automotive/remoteaccess/test_grpc_server/lib:ApPowerControlLib",
36    ],
37    whole_static_libs: [
38        "wakeup_client_protos",
39    ],
40    cflags: [
41        "-Wno-unused-parameter",
42        "-DGRPC_SERVICE_ADDRESS=\"127.0.0.1:50051\"",
43    ],
44}
45
46cc_binary_host {
47    name: "TestWakeupClientServerHost",
48    srcs: ["src/*.cpp"],
49    local_include_dirs: ["include"],
50    shared_libs: [
51        "libbase",
52        "libutils",
53        "libgrpc++",
54        "libprotobuf-cpp-full",
55    ],
56    whole_static_libs: [
57        "wakeup_client_protos",
58    ],
59    cflags: [
60        "-Wno-unused-parameter",
61        "-DGRPC_SERVICE_ADDRESS=\"127.0.0.1:50051\"",
62        "-DHOST",
63    ],
64}
65
66cc_test_host {
67    name: "TestWakeupClientServerHostUnitTest",
68    srcs: [
69        "test/*.cpp",
70        "src/TestWakeupClientServiceImpl.cpp",
71    ],
72    local_include_dirs: ["include"],
73    shared_libs: [
74        "libbase",
75        "libutils",
76        "libgrpc++",
77        "libprotobuf-cpp-full",
78    ],
79    static_libs: [
80        "libgtest",
81    ],
82    whole_static_libs: [
83        "wakeup_client_protos",
84    ],
85    cflags: [
86        "-Wno-unused-parameter",
87    ],
88}
89