Peng Xu | bba9d9a | 2016-11-21 20:14:41 -0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2016 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | # build VTS driver for Sensors v1.0. |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_MODULE := libvts_driver_hidl_sensors@1.0 |
| 23 | |
| 24 | LOCAL_SRC_FILES := \ |
| 25 | Sensors.vts \ |
| 26 | types.vts \ |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES += \ |
| 29 | android.hardware.sensors@1.0 \ |
| 30 | libbase \ |
| 31 | libutils \ |
| 32 | libcutils \ |
| 33 | liblog \ |
| 34 | libhidlbase \ |
| 35 | libhidltransport \ |
| 36 | libhwbinder \ |
| 37 | libprotobuf-cpp-full \ |
| 38 | libvts_common \ |
| 39 | libvts_datatype \ |
| 40 | libvts_measurement \ |
| 41 | libvts_multidevice_proto \ |
| 42 | |
| 43 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
| 44 | |
| 45 | LOCAL_MULTILIB := both |
| 46 | |
| 47 | include $(BUILD_SHARED_LIBRARY) |
| 48 | |
| 49 | # build profiler for sensors. |
| 50 | include $(CLEAR_VARS) |
| 51 | |
| 52 | LOCAL_MODULE := libvts_profiler_hidl_sensors@1.0 |
| 53 | |
| 54 | LOCAL_SRC_FILES := \ |
| 55 | Sensors.vts \ |
| 56 | types.vts \ |
| 57 | |
| 58 | LOCAL_C_INCLUDES += \ |
| 59 | test/vts/drivers/libprofiling \ |
| 60 | |
| 61 | LOCAL_VTS_MODE := PROFILER |
| 62 | |
| 63 | LOCAL_SHARED_LIBRARIES := \ |
| 64 | android.hardware.sensors@1.0 \ |
| 65 | libbase \ |
| 66 | libutils \ |
| 67 | libcutils \ |
| 68 | liblog \ |
| 69 | libhidlbase \ |
| 70 | libhidltransport \ |
| 71 | libhwbinder \ |
| 72 | libprotobuf-cpp-full \ |
| 73 | libvts_common \ |
| 74 | libvts_multidevice_proto \ |
| 75 | libvts_profiling \ |
| 76 | |
| 77 | LOCAL_PROTOC_OPTIMIZE_TYPE := full |
| 78 | |
| 79 | include $(BUILD_SHARED_LIBRARY) |
| 80 | |
| 81 | # include hidl test makefiles |
| 82 | include $(LOCAL_PATH)/functional/vts/testcases/hal/sensors/hidl/Android.mk |
| 83 | |