Nathan Kulczak | 71e0ef5 | 2024-11-21 17:33:12 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 24 | cc_defaults { |
| 25 | name: "idlcli-defaults", |
| 26 | shared_libs: [ |
Lais Andrade | f172ea1 | 2024-07-12 13:45:01 +0100 | [diff] [blame] | 27 | "android.hardware.vibrator-V3-ndk", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 28 | "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\" Sangha | 6ce6f73 | 2019-11-28 16:53:41 +0900 | [diff] [blame] | 33 | "libbinder_ndk", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 34 | "libhidlbase", |
| 35 | "liblog", |
| 36 | "libutils", |
| 37 | ], |
| 38 | cflags: [ |
| 39 | "-DLOG_TAG=\"idlcli\"", |
| 40 | ], |
Harpreet \"Eli\" Sangha | 6ce6f73 | 2019-11-28 16:53:41 +0900 | [diff] [blame] | 41 | vendor_available: true, |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | cc_library { |
| 45 | name: "libidlcli", |
| 46 | defaults: ["idlcli-defaults"], |
| 47 | srcs: [ |
| 48 | "CommandVibrator.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame] | 49 | "vibrator/CommandAlwaysOnDisable.cpp", |
| 50 | "vibrator/CommandAlwaysOnEnable.cpp", |
Harpreet \"Eli\" Sangha | 3a8400f | 2019-10-24 09:20:02 +0900 | [diff] [blame] | 51 | "vibrator/CommandCompose.cpp", |
Vince Leung | 44efedc | 2021-02-05 05:57:40 +0000 | [diff] [blame] | 52 | "vibrator/CommandComposePwle.cpp", |
Nathan Kulczak | d7cdab2 | 2024-10-09 07:58:14 +0000 | [diff] [blame] | 53 | "vibrator/CommandGetFrequencyToOutputAccelerationMap.cpp", |
Vince Leung | 44efedc | 2021-02-05 05:57:40 +0000 | [diff] [blame] | 54 | "vibrator/CommandGetBandwidthAmplitudeMap.cpp", |
Harpreet \"Eli\" Sangha | cb350b8 | 2019-11-12 15:15:25 +0900 | [diff] [blame] | 55 | "vibrator/CommandGetCapabilities.cpp", |
Harpreet \"Eli\" Sangha | 3a8400f | 2019-10-24 09:20:02 +0900 | [diff] [blame] | 56 | "vibrator/CommandGetCompositionDelayMax.cpp", |
| 57 | "vibrator/CommandGetCompositionSizeMax.cpp", |
Vince Leung | 44efedc | 2021-02-05 05:57:40 +0000 | [diff] [blame] | 58 | "vibrator/CommandGetFrequencyMinimum.cpp", |
| 59 | "vibrator/CommandGetFrequencyResolution.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame] | 60 | "vibrator/CommandGetPrimitiveDuration.cpp", |
Vince Leung | 44efedc | 2021-02-05 05:57:40 +0000 | [diff] [blame] | 61 | "vibrator/CommandGetPwleCompositionSizeMax.cpp", |
| 62 | "vibrator/CommandGetPwlePrimitiveDurationMax.cpp", |
Vince Leung | 1c0eaa9 | 2021-02-02 06:47:13 +0000 | [diff] [blame] | 63 | "vibrator/CommandGetQFactor.cpp", |
| 64 | "vibrator/CommandGetResonantFrequency.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame] | 65 | "vibrator/CommandGetSupportedAlwaysOnEffects.cpp", |
Vince Leung | 44efedc | 2021-02-05 05:57:40 +0000 | [diff] [blame] | 66 | "vibrator/CommandGetSupportedBraking.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame] | 67 | "vibrator/CommandGetSupportedEffects.cpp", |
| 68 | "vibrator/CommandGetSupportedPrimitives.cpp", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 69 | "vibrator/CommandOff.cpp", |
| 70 | "vibrator/CommandOn.cpp", |
| 71 | "vibrator/CommandPerform.cpp", |
| 72 | "vibrator/CommandSetAmplitude.cpp", |
| 73 | "vibrator/CommandSetExternalControl.cpp", |
| 74 | "vibrator/CommandSupportsAmplitudeControl.cpp", |
| 75 | "vibrator/CommandSupportsExternalControl.cpp", |
Nathan Kulczak | d7cdab2 | 2024-10-09 07:58:14 +0000 | [diff] [blame] | 76 | "vibrator/CommandGetPwleV2PrimitiveDurationMaxMillis.cpp", |
| 77 | "vibrator/CommandGetPwleV2CompositionSizeMax.cpp", |
| 78 | "vibrator/CommandGetPwleV2PrimitiveDurationMinMillis.cpp", |
| 79 | "vibrator/CommandComposePwleV2.cpp", |
| 80 | "vibrator/CommandPerformVendorEffect.cpp", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 81 | ], |
| 82 | visibility: [":__subpackages__"], |
| 83 | } |
| 84 | |
| 85 | cc_binary { |
| 86 | name: "idlcli", |
| 87 | defaults: ["idlcli-defaults"], |
| 88 | srcs: ["main.cpp"], |
| 89 | whole_static_libs: ["libidlcli"], |
| 90 | } |