1// Copyright (C) 2020 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_automotive",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library_headers {
21    name: "graph_test_headers",
22    export_include_dirs: ["./includes"],
23}
24
25cc_test {
26    name: "computepipe_prebuilt_graph_test",
27    test_suites: ["device-tests"],
28    srcs: [
29        "EnumConversionTest.cpp",
30        "LocalPrebuiltGraphTest.cpp",
31    ],
32    static_libs: [
33        "computepipe_prebuilt_graph",
34        "computepipe_runner_component",
35        "libgtest",
36        "libgmock",
37        "libcomputepipeprotos",
38    ],
39    shared_libs: [
40        "libstubgraphimpl",
41        "libprotobuf-cpp-lite",
42        "liblog",
43        "libdl",
44        "libbase",
45    ],
46    header_libs: [
47        "computepipe_runner_includes",
48        "graph_test_headers",
49    ],
50    include_dirs: [
51        "packages/services/Car/cpp/computepipe",
52        "packages/services/Car/cpp/computepipe/runner/graph",
53    ],
54    arch: {
55        riscv64: {
56            enabled: false,
57        },
58    },
59}
60
61cc_test {
62    name: "computepipe_grpc_graph_test",
63    cflags: [
64        "-Wall",
65        "-Werror",
66        "-Wextra",
67        "-Wno-unused-parameter",
68    ],
69    test_suites: ["device-tests"],
70    srcs: [
71        "GrpcGraphTest.cpp",
72    ],
73    static_libs: [
74        "computepipe_grpc_graph_proto",
75        "computepipe_runner_component",
76        "libgtest",
77        "libgmock",
78    ],
79    shared_libs: [
80        "computepipe_grpc_graph",
81        "libbase",
82        "libcomputepipeprotos",
83        "libgrpc++",
84        "libdl",
85        "liblog",
86        "libprotobuf-cpp-full",
87    ],
88    header_libs: [
89        "computepipe_runner_includes",
90        "graph_test_headers",
91    ],
92    include_dirs: [
93        "packages/services/Car/cpp/computepipe",
94        "packages/services/Car/cpp/computepipe/runner/graph",
95    ],
96}
97