blob: df8d66fbb22fc046bfb1d439ed4441594a45904a [file] [log] [blame]
Peng Xubba9d9a2016-11-21 20:14:41 -08001#
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
17LOCAL_PATH := $(call my-dir)
18
19# build VTS driver for Sensors v1.0.
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := libvts_driver_hidl_sensors@1.0
23
24LOCAL_SRC_FILES := \
25 Sensors.vts \
26 types.vts \
27
28LOCAL_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
43LOCAL_PROTOC_OPTIMIZE_TYPE := full
44
45LOCAL_MULTILIB := both
46
47include $(BUILD_SHARED_LIBRARY)
48
49# build profiler for sensors.
50include $(CLEAR_VARS)
51
52LOCAL_MODULE := libvts_profiler_hidl_sensors@1.0
53
54LOCAL_SRC_FILES := \
55 Sensors.vts \
56 types.vts \
57
58LOCAL_C_INCLUDES += \
59 test/vts/drivers/libprofiling \
60
61LOCAL_VTS_MODE := PROFILER
62
63LOCAL_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
77LOCAL_PROTOC_OPTIMIZE_TYPE := full
78
79include $(BUILD_SHARED_LIBRARY)
80
81# include hidl test makefiles
82include $(LOCAL_PATH)/functional/vts/testcases/hal/sensors/hidl/Android.mk
83