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 15cc_defaults { 16 name: "idlcli-defaults", 17 shared_libs: [ 18 "android.hardware.vibrator-ndk_platform", 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", 24 "libbinder_ndk", 25 "libhidlbase", 26 "liblog", 27 "libutils", 28 ], 29 cflags: [ 30 "-DLOG_TAG=\"idlcli\"", 31 ], 32 vendor_available: true, 33} 34 35cc_library { 36 name: "libidlcli", 37 defaults: ["idlcli-defaults"], 38 srcs: [ 39 "CommandVibrator.cpp", 40 "vibrator/CommandCompose.cpp", 41 "vibrator/CommandGetCapabilities.cpp", 42 "vibrator/CommandGetCompositionDelayMax.cpp", 43 "vibrator/CommandGetCompositionSizeMax.cpp", 44 "vibrator/CommandOff.cpp", 45 "vibrator/CommandOn.cpp", 46 "vibrator/CommandPerform.cpp", 47 "vibrator/CommandSetAmplitude.cpp", 48 "vibrator/CommandSetExternalControl.cpp", 49 "vibrator/CommandSupportsAmplitudeControl.cpp", 50 "vibrator/CommandSupportsExternalControl.cpp", 51 ], 52 visibility: [":__subpackages__"], 53} 54 55cc_binary { 56 name: "idlcli", 57 defaults: ["idlcli-defaults"], 58 srcs: ["main.cpp"], 59 whole_static_libs: ["libidlcli"], 60} 61