blob: 5476319f31a63ed09b98afabefc5c93c9c8d0266 [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\" Sangha3a8400f2019-10-24 09:20:02 +090039 "vibrator/CommandCompose.cpp",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090040 "vibrator/CommandGetCapabilities.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090041 "vibrator/CommandGetCompositionDelayMax.cpp",
42 "vibrator/CommandGetCompositionSizeMax.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090043 "vibrator/CommandOff.cpp",
44 "vibrator/CommandOn.cpp",
45 "vibrator/CommandPerform.cpp",
46 "vibrator/CommandSetAmplitude.cpp",
47 "vibrator/CommandSetExternalControl.cpp",
48 "vibrator/CommandSupportsAmplitudeControl.cpp",
49 "vibrator/CommandSupportsExternalControl.cpp",
50 ],
51 visibility: [":__subpackages__"],
52}
53
54cc_binary {
55 name: "idlcli",
56 defaults: ["idlcli-defaults"],
57 srcs: ["main.cpp"],
58 whole_static_libs: ["libidlcli"],
59}