blob: 67adc7f5fd18abd3b052eb6aa4a1a688b5c16e11 [file] [log] [blame]
Keun Soo Yim6473c642016-10-10 13:42:31 -07001#
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
Keun Soo Yim3e788192016-10-10 17:18:29 -070019# build VTS driver for Nfc v1.0.
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := libvts_driver_hidl_nfc@1.0
23
24LOCAL_SRC_FILES := \
25 Nfc.vts \
26 NfcClientCallback.vts \
27 types.vts \
28
29LOCAL_C_INCLUDES := \
30 android.hardware.nfc@1.0 \
31 system/core/base/include \
32 system/core/include \
33
34LOCAL_SHARED_LIBRARIES += \
35 android.hardware.nfc@1.0 \
36 libbase \
37 libutils \
38 libcutils \
39 liblog \
Yifan Hong1ee98592016-11-16 14:17:58 -080040 libhidlbase \
41 libhidltransport \
Keun Soo Yim3e788192016-10-10 17:18:29 -070042 libhwbinder \
43 libprotobuf-cpp-full \
44 libvts_common \
45 libvts_datatype \
46 libvts_measurement \
47 libvts_multidevice_proto \
48
49LOCAL_CFLAGS += -DENABLE_TREBLE
50
51LOCAL_STATIC_LIBRARIES := \
52
53LOCAL_PROTOC_OPTIMIZE_TYPE := full
54
55LOCAL_MULTILIB := both
56
57include $(BUILD_SHARED_LIBRARY)
58
Keun Soo Yim6473c642016-10-10 13:42:31 -070059# build profiler for Nfc.
60include $(CLEAR_VARS)
61
62LOCAL_MODULE := libvts_profiler_hidl_nfc@1.0
63
64LOCAL_SRC_FILES := \
65 Nfc.vts \
66 types.vts \
67
68LOCAL_C_INCLUDES += \
69 test/vts/drivers/libprofiling \
70
71LOCAL_VTS_MODE := PROFILER
72
73LOCAL_SHARED_LIBRARIES := \
74 android.hardware.nfc@1.0 \
75 libbase \
76 libcutils \
77 liblog \
Yifan Hong1ee98592016-11-16 14:17:58 -080078 libhidlbase \
79 libhidltransport \
Keun Soo Yim6473c642016-10-10 13:42:31 -070080 libhwbinder \
81 libprotobuf-cpp-full \
82 libvts_common \
83 libvts_multidevice_proto \
84 libvts_profiling \
85 libutils \
86
87LOCAL_PROTOC_OPTIMIZE_TYPE := full
88
89include $(BUILD_SHARED_LIBRARY)
90
91# build profiler for NfcClientCallback.
92include $(CLEAR_VARS)
93
94LOCAL_MODULE := libvts_profiler_hidl_nfc_client_callback_@1.0
95
96LOCAL_SRC_FILES := \
97 NfcClientCallback.vts \
98 types.vts \
99
100LOCAL_C_INCLUDES += \
101 test/vts/drivers/libprofiling \
102
103LOCAL_VTS_MODE := PROFILER
104
105LOCAL_SHARED_LIBRARIES := \
106 android.hardware.nfc@1.0 \
107 libbase \
108 libcutils \
109 liblog \
Yifan Hong1ee98592016-11-16 14:17:58 -0800110 libhidlbase \
111 libhidltransport \
Keun Soo Yim6473c642016-10-10 13:42:31 -0700112 libhwbinder \
113 libprotobuf-cpp-full \
114 libvts_common \
115 libvts_multidevice_proto \
116 libvts_profiling \
117 libutils \
118
119LOCAL_PROTOC_OPTIMIZE_TYPE := full
120
121include $(BUILD_SHARED_LIBRARY)