• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 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
15cc_library_shared {
16    name: "liblshal",
17    shared_libs: [
18        "libbase",
19        "libcutils",
20        "libutils",
21        "libhidlbase",
22        "libhidltransport",
23        "libhidl-gen-utils",
24        "libvintf",
25        "android.hidl.manager@1.0",
26    ],
27    srcs: [
28        "DebugCommand.cpp",
29        "Lshal.cpp",
30        "ListCommand.cpp",
31        "PipeRelay.cpp",
32        "utils.cpp",
33    ],
34}
35
36cc_defaults {
37    name: "lshal_defaults",
38    shared_libs: [
39        "libbase",
40        "libhidlbase",
41        "libhidltransport",
42        "liblshal",
43        "libutils",
44    ]
45}
46
47cc_binary {
48    name: "lshal",
49    defaults: ["lshal_defaults"],
50    srcs: [
51        "main.cpp"
52    ]
53}
54
55cc_test {
56    name: "lshal_test",
57    defaults: ["lshal_defaults"],
58    gtest: true,
59    static_libs: [
60        "libgmock"
61    ],
62    shared_libs: [
63        "android.hardware.tests.baz@1.0"
64    ],
65    srcs: [
66        "test.cpp"
67    ]
68}
69