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 17LOCAL_PATH := $(call my-dir) 18 19vtslib_interfacespec_srcfiles := \ 20 hal/conventional/camera/2.1/CameraHalV2.vts \ 21 hal/conventional/camera/2.1/CameraHalV2hw_device_t.vts \ 22 hal/conventional/camera/3.4/CameraHalV3.vts \ 23 hal/conventional/camera/3.4/CameraHalV3camera3_device_ops_t.vts \ 24 hal/conventional/gps/1.0/GpsHalV1.vts \ 25 hal/conventional/gps/1.0/GpsHalV1GpsInterface.vts \ 26 hal/conventional/light/1.0/LightHalV1.vts \ 27 hal/conventional/wifi/1.0/WifiHalV1.vts \ 28 hal/conventional/bluetooth/1.0/BluetoothHalV1.vts \ 29 hal/conventional/bluetooth/1.0/BluetoothHalV1bt_interface_t.vts \ 30 lib/ndk/bionic/1.0/libmV1.vts \ 31 lib/ndk/bionic/1.0/libcV1.vts \ 32 lib/ndk/bionic/1.0/libcutilsV1.vts \ 33 34vtslib_interfacespec_includes := \ 35 $(LOCAL_PATH) \ 36 test/vts/drivers/hal \ 37 test/vts/drivers/hal/common \ 38 test/vts/drivers/hal/framework \ 39 test/vts/drivers/hal/libdatatype \ 40 test/vts/drivers/hal/libmeasurement \ 41 bionic \ 42 libcore \ 43 device/google/gce/include \ 44 system/extras \ 45 system/media/camera/include \ 46 external/protobuf/src \ 47 external/libedit/src \ 48 $(TARGET_OUT_HEADERS) \ 49 50vtslib_interfacespec_shared_libraries := \ 51 libcutils \ 52 liblog \ 53 libdl \ 54 libandroid_runtime \ 55 libcamera_metadata \ 56 libvts_datatype \ 57 libvts_common \ 58 libvts_measurement \ 59 libvts_multidevice_proto \ 60 libprotobuf-cpp-full \ 61 62vtslib_interfacespec_static_libraries := \ 63 64include $(CLEAR_VARS) 65 66# libvts_interfacespecification does not include or link any HIDL HAL driver. 67# HIDL HAL drivers and profilers are defined as separated shared libraries 68# in a respective hardware/interfaces/<hal name>/<version>/Android.bp file. 69# libvts_interfacespecification is the driver for: 70# legacy HALs, 71# conventional HALs, 72# shared libraries, 73# and so on. 74 75LOCAL_MODULE := libvts_interfacespecification 76LOCAL_MODULE_TAGS := optional 77 78LOCAL_SRC_FILES := \ 79 ${vtslib_interfacespec_srcfiles} \ 80 81LOCAL_C_INCLUDES := \ 82 ${vtslib_interfacespec_includes} \ 83 system/core/base/include \ 84 85LOCAL_SHARED_LIBRARIES := \ 86 ${vtslib_interfacespec_shared_libraries} \ 87 88LOCAL_STATIC_LIBRARIES := \ 89 ${vtslib_interfacespec_static_libraries} 90 91LOCAL_PROTOC_OPTIMIZE_TYPE := full 92 93LOCAL_MULTILIB := both 94 95include $(BUILD_SHARED_LIBRARY) 96