blob: ec3bc616ad2a75074a3944187ad4d19dc51fc771 [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
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: [
Jeongik Cha830c5002021-01-28 00:49:48 +090027 "android.hardware.vibrator-V2-ndk_platform",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090028 "android.hardware.vibrator@1.0",
29 "android.hardware.vibrator@1.1",
30 "android.hardware.vibrator@1.2",
31 "android.hardware.vibrator@1.3",
32 "libbase",
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090033 "libbinder_ndk",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090034 "libhidlbase",
35 "liblog",
36 "libutils",
37 ],
38 cflags: [
39 "-DLOG_TAG=\"idlcli\"",
40 ],
Harpreet \"Eli\" Sangha6ce6f732019-11-28 16:53:41 +090041 vendor_available: true,
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090042}
43
44cc_library {
45 name: "libidlcli",
46 defaults: ["idlcli-defaults"],
47 srcs: [
48 "CommandVibrator.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090049 "vibrator/CommandAlwaysOnDisable.cpp",
50 "vibrator/CommandAlwaysOnEnable.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090051 "vibrator/CommandCompose.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000052 "vibrator/CommandComposePwle.cpp",
53 "vibrator/CommandGetBandwidthAmplitudeMap.cpp",
Harpreet \"Eli\" Sanghacb350b82019-11-12 15:15:25 +090054 "vibrator/CommandGetCapabilities.cpp",
Harpreet \"Eli\" Sangha3a8400f2019-10-24 09:20:02 +090055 "vibrator/CommandGetCompositionDelayMax.cpp",
56 "vibrator/CommandGetCompositionSizeMax.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000057 "vibrator/CommandGetFrequencyMinimum.cpp",
58 "vibrator/CommandGetFrequencyResolution.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090059 "vibrator/CommandGetPrimitiveDuration.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000060 "vibrator/CommandGetPwleCompositionSizeMax.cpp",
61 "vibrator/CommandGetPwlePrimitiveDurationMax.cpp",
Vince Leung1c0eaa92021-02-02 06:47:13 +000062 "vibrator/CommandGetQFactor.cpp",
63 "vibrator/CommandGetResonantFrequency.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090064 "vibrator/CommandGetSupportedAlwaysOnEffects.cpp",
Vince Leung44efedc2021-02-05 05:57:40 +000065 "vibrator/CommandGetSupportedBraking.cpp",
Harpreet \"Eli\" Sanghaeb8505c2020-04-10 12:40:23 +090066 "vibrator/CommandGetSupportedEffects.cpp",
67 "vibrator/CommandGetSupportedPrimitives.cpp",
Harpreet "Eli" Sanghae47ae682019-06-05 16:52:47 +090068 "vibrator/CommandOff.cpp",
69 "vibrator/CommandOn.cpp",
70 "vibrator/CommandPerform.cpp",
71 "vibrator/CommandSetAmplitude.cpp",
72 "vibrator/CommandSetExternalControl.cpp",
73 "vibrator/CommandSupportsAmplitudeControl.cpp",
74 "vibrator/CommandSupportsExternalControl.cpp",
75 ],
76 visibility: [":__subpackages__"],
77}
78
79cc_binary {
80 name: "idlcli",
81 defaults: ["idlcli-defaults"],
82 srcs: ["main.cpp"],
83 whole_static_libs: ["libidlcli"],
84}