blob: bb92fd3ac07e3a297ae9b150a295b2af444fbff4 [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",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090023 "libbinder",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090024 "libhidlbase",
25 "liblog",
26 "libutils",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090027 "vintf-vibrator-cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090028 ],
29 cflags: [
30 "-DLOG_TAG=\"idlcli\"",
31 ],
32}
33
34cc_library {
35 name: "libidlcli",
36 defaults: ["idlcli-defaults"],
37 srcs: [
38 "CommandVibrator.cpp",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090039 "vibrator/CommandGetCapabilities.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090040 "vibrator/CommandOff.cpp",
41 "vibrator/CommandOn.cpp",
42 "vibrator/CommandPerform.cpp",
43 "vibrator/CommandSetAmplitude.cpp",
44 "vibrator/CommandSetExternalControl.cpp",
45 "vibrator/CommandSupportsAmplitudeControl.cpp",
46 "vibrator/CommandSupportsExternalControl.cpp",
47 ],
48 visibility: [":__subpackages__"],
49}
50
51cc_binary {
52 name: "idlcli",
53 defaults: ["idlcli-defaults"],
54 srcs: ["main.cpp"],
55 whole_static_libs: ["libidlcli"],
56}