| 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: [ | 
|  | 18 | "android.hardware.vibrator@1.0", | 
|  | 19 | "android.hardware.vibrator@1.1", | 
|  | 20 | "android.hardware.vibrator@1.2", | 
|  | 21 | "android.hardware.vibrator@1.3", | 
|  | 22 | "libbase", | 
| Harpreet \"Eli\" Sangha | cb350b8 | 2019-11-12 15:15:25 +0900 | [diff] [blame] | 23 | "libbinder", | 
| Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 24 | "libhidlbase", | 
|  | 25 | "liblog", | 
|  | 26 | "libutils", | 
| Harpreet \"Eli\" Sangha | cb350b8 | 2019-11-12 15:15:25 +0900 | [diff] [blame] | 27 | "vintf-vibrator-cpp", | 
| Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 28 | ], | 
|  | 29 | cflags: [ | 
|  | 30 | "-DLOG_TAG=\"idlcli\"", | 
|  | 31 | ], | 
|  | 32 | } | 
|  | 33 |  | 
|  | 34 | cc_library { | 
|  | 35 | name: "libidlcli", | 
|  | 36 | defaults: ["idlcli-defaults"], | 
|  | 37 | srcs: [ | 
|  | 38 | "CommandVibrator.cpp", | 
| Harpreet \"Eli\" Sangha | cb350b8 | 2019-11-12 15:15:25 +0900 | [diff] [blame] | 39 | "vibrator/CommandGetCapabilities.cpp", | 
| Harpreet "Eli" Sangha | e47ae68 | 2019-06-05 16:52:47 +0900 | [diff] [blame] | 40 | "vibrator/CommandOff.cpp", | 
|  | 41 | "vibrator/CommandOn.cpp", | 
|  | 42 | "vibrator/CommandPerform.cpp", | 
|  | 43 | "vibrator/CommandSetAmplitude.cpp", | 
|  | 44 | "vibrator/CommandSetExternalControl.cpp", | 
|  | 45 | "vibrator/CommandSupportsAmplitudeControl.cpp", | 
|  | 46 | "vibrator/CommandSupportsExternalControl.cpp", | 
|  | 47 | ], | 
|  | 48 | visibility: [":__subpackages__"], | 
|  | 49 | } | 
|  | 50 |  | 
|  | 51 | cc_binary { | 
|  | 52 | name: "idlcli", | 
|  | 53 | defaults: ["idlcli-defaults"], | 
|  | 54 | srcs: ["main.cpp"], | 
|  | 55 | whole_static_libs: ["libidlcli"], | 
|  | 56 | } |