blob: b87ef2dc36948480086424c9250189411e716b65 [file] [log] [blame]
Nathan Kulczak71e0ef52024-11-21 17:33:12 +00001// Copyright (C) 2019 The Android Open Source Project
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +09002//
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
Bob Badour3306e492021-02-25 15:35:37 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090024cc_defaults {
25 name: "idlcli-defaults",
26 shared_libs: [
Lais Andradef172ea12024-07-12 13:45:01 +010027 "android.hardware.vibrator-V3-ndk",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090028 "libbase",
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090029 "libbinder_ndk",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090030 "liblog",
31 "libutils",
32 ],
33 cflags: [
34 "-DLOG_TAG=\"idlcli\"",
35 ],
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090036 vendor_available: true,
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090037}
38
39cc_library {
40 name: "libidlcli",
41 defaults: ["idlcli-defaults"],
42 srcs: [
43 "CommandVibrator.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090044 "vibrator/CommandAlwaysOnDisable.cpp",
45 "vibrator/CommandAlwaysOnEnable.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090046 "vibrator/CommandCompose.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000047 "vibrator/CommandComposePwle.cpp",
Nathan Kulczakd7cdab22024-10-09 07:58:14 +000048 "vibrator/CommandGetFrequencyToOutputAccelerationMap.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000049 "vibrator/CommandGetBandwidthAmplitudeMap.cpp",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090050 "vibrator/CommandGetCapabilities.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090051 "vibrator/CommandGetCompositionDelayMax.cpp",
52 "vibrator/CommandGetCompositionSizeMax.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000053 "vibrator/CommandGetFrequencyMinimum.cpp",
54 "vibrator/CommandGetFrequencyResolution.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090055 "vibrator/CommandGetPrimitiveDuration.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000056 "vibrator/CommandGetPwleCompositionSizeMax.cpp",
57 "vibrator/CommandGetPwlePrimitiveDurationMax.cpp",
Vince Leung1c0eaa92021-02-02 06:47:13 +000058 "vibrator/CommandGetQFactor.cpp",
59 "vibrator/CommandGetResonantFrequency.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090060 "vibrator/CommandGetSupportedAlwaysOnEffects.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000061 "vibrator/CommandGetSupportedBraking.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090062 "vibrator/CommandGetSupportedEffects.cpp",
63 "vibrator/CommandGetSupportedPrimitives.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090064 "vibrator/CommandOff.cpp",
65 "vibrator/CommandOn.cpp",
66 "vibrator/CommandPerform.cpp",
67 "vibrator/CommandSetAmplitude.cpp",
68 "vibrator/CommandSetExternalControl.cpp",
69 "vibrator/CommandSupportsAmplitudeControl.cpp",
70 "vibrator/CommandSupportsExternalControl.cpp",
Nathan Kulczakd7cdab22024-10-09 07:58:14 +000071 "vibrator/CommandGetPwleV2PrimitiveDurationMaxMillis.cpp",
72 "vibrator/CommandGetPwleV2CompositionSizeMax.cpp",
73 "vibrator/CommandGetPwleV2PrimitiveDurationMinMillis.cpp",
74 "vibrator/CommandComposePwleV2.cpp",
75 "vibrator/CommandPerformVendorEffect.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090076 ],
77 visibility: [":__subpackages__"],
78}
79
80cc_binary {
81 name: "idlcli",
82 defaults: ["idlcli-defaults"],
83 srcs: ["main.cpp"],
84 whole_static_libs: ["libidlcli"],
85}