blob: 23277b88ff5b8ef8852022d22dd9d8c47ec18521 [file] [log] [blame]
Ryan Campbell6678b1b2016-11-07 09:54:57 -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 Power v1.0.
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := libvts_driver_hidl_power@1.0
23
24LOCAL_SRC_FILES := \
25 Power.vts \
26 types.vts \
27
28LOCAL_C_INCLUDES := \
29 android.hardware.power@1.0 \
30 system/core/base/include \
31 system/core/include \
32
33LOCAL_SHARED_LIBRARIES += \
34 android.hardware.power@1.0 \
35 libbase \
36 libutils \
37 libcutils \
38 liblog \
Yifan Hong6b920e42016-11-16 14:17:58 -080039 libhidlbase \
40 libhidltransport \
Ryan Campbell6678b1b2016-11-07 09:54:57 -080041 libhwbinder \
42 libprotobuf-cpp-full \
43 libvts_common \
44 libvts_datatype \
45 libvts_measurement \
46 libvts_multidevice_proto \
47
48LOCAL_CFLAGS += -DENABLE_TREBLE
49
50LOCAL_STATIC_LIBRARIES := \
51
52LOCAL_PROTOC_OPTIMIZE_TYPE := full
53
54LOCAL_MULTILIB := both
55
56include $(BUILD_SHARED_LIBRARY)
57
58# build profiler for power.
59include $(CLEAR_VARS)
60
61LOCAL_MODULE := libvts_profiler_hidl_power@1.0
62
63LOCAL_SRC_FILES := \
64 Power.vts \
65 types.vts \
66
67LOCAL_C_INCLUDES += \
68 test/vts/drivers/libprofiling \
69
70LOCAL_VTS_MODE := PROFILER
71
72LOCAL_SHARED_LIBRARIES := \
73 android.hardware.power@1.0 \
74 libbase \
75 libcutils \
76 liblog \
Yifan Hong6b920e42016-11-16 14:17:58 -080077 libhidlbase \
78 libhidltransport \
Ryan Campbell6678b1b2016-11-07 09:54:57 -080079 libhwbinder \
80 libprotobuf-cpp-full \
81 libvts_common \
82 libvts_multidevice_proto \
83 libvts_profiling \
84 libutils \
85
86LOCAL_PROTOC_OPTIMIZE_TYPE := full
87
88include $(BUILD_SHARED_LIBRARY)