1// Copyright (C) 2019 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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library {
20    name: "android.automotive.computepipe.router@1.0-impl",
21    vendor_available: true,
22    srcs: [
23        "PipeClient.cpp",
24        "PipeRunner.cpp",
25        "PipeRegistration.cpp",
26        "PipeQuery.cpp",
27        "RemoteState.cpp",
28    ],
29    cflags: ["-DLOG_TAG=\"ComputepipeRouter\""] +
30        [
31            "-Wall",
32            "-Werror",
33            "-Wextra",
34            "-Wno-unused-parameter",
35        ],
36    header_libs: [
37        "computepipe_router_headers",
38    ],
39    export_include_dirs: ["include"],
40    shared_libs: [
41        "liblog",
42        "libutils",
43        "libbinder_ndk",
44        "android.automotive.computepipe.registry-V2-ndk",
45        "android.automotive.computepipe.runner-V2-ndk",
46    ],
47}
48
49cc_binary {
50    name: "android.automotive.computepipe.router@1.0",
51    srcs: [
52        "service.cpp",
53        "RouterSvc.cpp",
54    ],
55    shared_libs: [
56        "libcutils",
57        "liblog",
58        "libutils",
59        "libbinder_ndk",
60        "android.automotive.computepipe.router@1.0-impl",
61        "android.automotive.computepipe.registry-V2-ndk",
62    ],
63    header_libs: [
64        "computepipe_router_headers",
65    ],
66    init_rc: ["android.automotive.computepipe.router@1.0.rc"],
67    cflags: ["-DLOG_TAG=\"ComputepipeRouter\""] + [
68        "-DGL_GLEXT_PROTOTYPES",
69        "-DEGL_EGLEXT_PROTOTYPES",
70    ] + [
71        "-Wall",
72        "-Werror",
73        "-Wunused",
74        "-Wunreachable-code",
75    ],
76}
77