1// Copyright (C) 2021 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_defaults {
20    name: "vehicle_binding_util_defaults",
21    cflags: [
22        "-Wall",
23        "-Wno-missing-field-initializers",
24        "-Werror",
25        "-Wno-unused-variable",
26    ],
27    shared_libs: [
28        "android.hardware.automotive.vehicle@2.0",
29        "libbase",
30        "libbinder",
31        "libcutils",
32        "libhidlbase",
33        "liblog",
34        "liblogwrap",
35        "libutils",
36    ],
37    static_libs: [
38        "libbase",
39    ],
40}
41
42cc_library_static {
43    name: "libvehicle_binding_util",
44    srcs: [
45        "src/VehicleBindingUtil.cpp",
46    ],
47    defaults: [
48        "vehicle_binding_util_defaults",
49    ],
50    export_include_dirs: [
51        "src",
52    ],
53}
54
55cc_binary {
56    name: "vehicle_binding_util",
57    defaults: [
58        "vehicle_binding_util_defaults",
59    ],
60    srcs: [
61        "src/main.cpp",
62    ],
63    init_rc: ["vehicle_binding_util.rc"],
64    static_libs: [
65        "libvehicle_binding_util",
66    ],
67}
68