blob: 47814688a9544b12c53c8c0964430527d221704c [file] [log] [blame]
Yifan Hong85dd3ad2017-01-25 14:20:34 -08001// 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
Yifan Hong9881df92017-05-10 14:33:05 -070015cc_library_shared {
16 name: "liblshal",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080017 shared_libs: [
Yifan Hongf4bee842017-02-01 15:54:01 -080018 "libbase",
Andreas Huber28d35912017-03-24 13:14:11 -070019 "libcutils",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080020 "libutils",
21 "libhidlbase",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080022 "libhidltransport",
Yifan Hong4b865492017-02-28 19:38:24 -080023 "libhidl-gen-utils",
24 "libvintf",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080025 ],
26 srcs: [
Yifan Hong48dc9f82017-05-09 19:33:08 -070027 "DebugCommand.cpp",
Andreas Huber28d35912017-03-24 13:14:11 -070028 "Lshal.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070029 "ListCommand.cpp",
30 "PipeRelay.cpp",
Yifan Hongd4a77e82017-09-06 19:40:24 -070031 "TableEntry.cpp",
Yifan Hong1bc1e9f2017-08-29 17:28:12 -070032 "TextTable.cpp",
Yifan Hong443df792017-05-09 18:49:45 -070033 "utils.cpp",
Yifan Hong85dd3ad2017-01-25 14:20:34 -080034 ],
35}
Yifan Hong9881df92017-05-10 14:33:05 -070036
37cc_defaults {
38 name: "lshal_defaults",
39 shared_libs: [
40 "libbase",
41 "libhidlbase",
42 "libhidltransport",
43 "liblshal",
44 "libutils",
45 ]
46}
47
48cc_binary {
49 name: "lshal",
50 defaults: ["lshal_defaults"],
51 srcs: [
52 "main.cpp"
53 ]
54}
55
56cc_test {
57 name: "lshal_test",
58 defaults: ["lshal_defaults"],
59 gtest: true,
60 static_libs: [
61 "libgmock"
62 ],
63 shared_libs: [
Yifan Hong8bf73162017-09-07 18:06:13 -070064 "libvintf",
Yifan Hong9881df92017-05-10 14:33:05 -070065 "android.hardware.tests.baz@1.0"
66 ],
67 srcs: [
68 "test.cpp"
69 ]
70}