blob: 64bfdf9289a9ff21ecea6c627f0da1ab547aeeed [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: [
Steven Moreland97e818b2020-01-06 13:40:51 -080018 "android.hardware.vibrator-ndk_platform",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090019 "android.hardware.vibrator@1.0",
20 "android.hardware.vibrator@1.1",
21 "android.hardware.vibrator@1.2",
22 "android.hardware.vibrator@1.3",
23 "libbase",
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090024 "libbinder_ndk",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090025 "libhidlbase",
26 "liblog",
27 "libutils",
28 ],
29 cflags: [
30 "-DLOG_TAG=\"idlcli\"",
31 ],
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090032 vendor_available: true,
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090033}
34
35cc_library {
36 name: "libidlcli",
37 defaults: ["idlcli-defaults"],
38 srcs: [
39 "CommandVibrator.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090040 "vibrator/CommandAlwaysOnDisable.cpp",
41 "vibrator/CommandAlwaysOnEnable.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090042 "vibrator/CommandCompose.cpp",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090043 "vibrator/CommandGetCapabilities.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090044 "vibrator/CommandGetCompositionDelayMax.cpp",
45 "vibrator/CommandGetCompositionSizeMax.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090046 "vibrator/CommandGetPrimitiveDuration.cpp",
47 "vibrator/CommandGetSupportedAlwaysOnEffects.cpp",
48 "vibrator/CommandGetSupportedEffects.cpp",
49 "vibrator/CommandGetSupportedPrimitives.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090050 "vibrator/CommandOff.cpp",
51 "vibrator/CommandOn.cpp",
52 "vibrator/CommandPerform.cpp",
53 "vibrator/CommandSetAmplitude.cpp",
54 "vibrator/CommandSetExternalControl.cpp",
55 "vibrator/CommandSupportsAmplitudeControl.cpp",
56 "vibrator/CommandSupportsExternalControl.cpp",
57 ],
58 visibility: [":__subpackages__"],
59}
60
61cc_binary {
62 name: "idlcli",
63 defaults: ["idlcli-defaults"],
64 srcs: ["main.cpp"],
65 whole_static_libs: ["libidlcli"],
66}