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