blob: 40b8dc74f7743f3c92f8f6af872dfc4d3643fd6b [file] [log] [blame]
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +09001// 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
15cc_defaults {
16 name: "idlcli-defaults",
17 shared_libs: [
18 "android.hardware.vibrator@1.0",
19 "android.hardware.vibrator@1.1",
20 "android.hardware.vibrator@1.2",
21 "android.hardware.vibrator@1.3",
22 "libbase",
23 "libhidlbase",
24 "liblog",
25 "libutils",
26 ],
27 cflags: [
28 "-DLOG_TAG=\"idlcli\"",
29 ],
30}
31
32cc_library {
33 name: "libidlcli",
34 defaults: ["idlcli-defaults"],
35 srcs: [
36 "CommandVibrator.cpp",
37 "vibrator/CommandOff.cpp",
38 "vibrator/CommandOn.cpp",
39 "vibrator/CommandPerform.cpp",
40 "vibrator/CommandSetAmplitude.cpp",
41 "vibrator/CommandSetExternalControl.cpp",
42 "vibrator/CommandSupportsAmplitudeControl.cpp",
43 "vibrator/CommandSupportsExternalControl.cpp",
44 ],
45 visibility: [":__subpackages__"],
46}
47
48cc_binary {
49 name: "idlcli",
50 defaults: ["idlcli-defaults"],
51 srcs: ["main.cpp"],
52 whole_static_libs: ["libidlcli"],
53}