Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_defaults { |
| 16 | name: "idlcli-defaults", |
| 17 | shared_libs: [ |
Steven Moreland | 97e818b | 2020-01-06 13:40:51 -0800 | [diff] [blame] | 18 | "android.hardware.vibrator-ndk_platform", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 19 | "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\" Sangha | 6ce6f73 | 2019-11-28 16:53:41 +0900 | [diff] [blame] | 24 | "libbinder_ndk", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 25 | "libhidlbase", |
| 26 | "liblog", |
| 27 | "libutils", |
| 28 | ], |
| 29 | cflags: [ |
| 30 | "-DLOG_TAG=\"idlcli\"", |
| 31 | ], |
Harpreet \"Eli\" Sangha | 6ce6f73 | 2019-11-28 16:53:41 +0900 | [diff] [blame] | 32 | vendor_available: true, |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | cc_library { |
| 36 | name: "libidlcli", |
| 37 | defaults: ["idlcli-defaults"], |
| 38 | srcs: [ |
| 39 | "CommandVibrator.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame^] | 40 | "vibrator/CommandAlwaysOnDisable.cpp", |
| 41 | "vibrator/CommandAlwaysOnEnable.cpp", |
Harpreet \"Eli\" Sangha | 3a8400f | 2019-10-24 09:20:02 +0900 | [diff] [blame] | 42 | "vibrator/CommandCompose.cpp", |
Harpreet \"Eli\" Sangha | cb350b8 | 2019-11-12 15:15:25 +0900 | [diff] [blame] | 43 | "vibrator/CommandGetCapabilities.cpp", |
Harpreet \"Eli\" Sangha | 3a8400f | 2019-10-24 09:20:02 +0900 | [diff] [blame] | 44 | "vibrator/CommandGetCompositionDelayMax.cpp", |
| 45 | "vibrator/CommandGetCompositionSizeMax.cpp", |
Harpreet \"Eli\" Sangha | eb8505c | 2020-04-10 12:40:23 +0900 | [diff] [blame^] | 46 | "vibrator/CommandGetPrimitiveDuration.cpp", |
| 47 | "vibrator/CommandGetSupportedAlwaysOnEffects.cpp", |
| 48 | "vibrator/CommandGetSupportedEffects.cpp", |
| 49 | "vibrator/CommandGetSupportedPrimitives.cpp", |
Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 50 | "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 | |
| 61 | cc_binary { |
| 62 | name: "idlcli", |
| 63 | defaults: ["idlcli-defaults"], |
| 64 | srcs: ["main.cpp"], |
| 65 | whole_static_libs: ["libidlcli"], |
| 66 | } |