OSDN Git Service

67b5b4682948e3826f1f0d57553ad3bfe0c24cc1
[android-x86/frameworks-native.git] / cmds / lshal / Android.bp
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
15 cc_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     ],
26     srcs: [
27         "DebugCommand.cpp",
28         "Lshal.cpp",
29         "ListCommand.cpp",
30         "PipeRelay.cpp",
31         "utils.cpp",
32     ],
33 }
34
35 cc_defaults {
36     name: "lshal_defaults",
37     shared_libs: [
38         "libbase",
39         "libhidlbase",
40         "libhidltransport",
41         "liblshal",
42         "libutils",
43     ]
44 }
45
46 cc_binary {
47     name: "lshal",
48     defaults: ["lshal_defaults"],
49     srcs: [
50         "main.cpp"
51     ]
52 }
53
54 cc_test {
55     name: "lshal_test",
56     defaults: ["lshal_defaults"],
57     gtest: true,
58     static_libs: [
59         "libgmock"
60     ],
61     shared_libs: [
62         "android.hardware.tests.baz@1.0"
63     ],
64     srcs: [
65         "test.cpp"
66     ]
67 }