• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  libbluetooth-types
64
65include $(CLEAR_VARS)
66
67# libvts_interfacespecification does not include or link any HIDL HAL driver.
68# HIDL HAL drivers and profilers are defined as separated shared libraries
69# in a respective hardware/interfaces/<hal name>/<version>/Android.bp file.
70# libvts_interfacespecification is the driver for:
71#   legacy HALs,
72#   conventional HALs,
73#   shared libraries,
74#   and so on.
75
76LOCAL_MODULE := libvts_interfacespecification
77LOCAL_MODULE_TAGS := optional
78
79LOCAL_SRC_FILES := \
80  ${vtslib_interfacespec_srcfiles} \
81
82LOCAL_C_INCLUDES := \
83  ${vtslib_interfacespec_includes} \
84  system/core/base/include \
85
86LOCAL_SHARED_LIBRARIES := \
87  ${vtslib_interfacespec_shared_libraries} \
88
89LOCAL_STATIC_LIBRARIES := \
90  ${vtslib_interfacespec_static_libraries}
91
92LOCAL_CFLAGS := \
93  -Wall \
94  -Werror \
95
96# These warnings are in code generated with vtsc
97# b/31362043
98LOCAL_CFLAGS += \
99  -Wno-unused-parameter \
100  -Wno-unused-value \
101  -Wno-duplicate-decl-specifier \
102
103LOCAL_PROTOC_OPTIMIZE_TYPE := full
104
105LOCAL_MULTILIB := both
106
107include $(BUILD_SHARED_LIBRARY)
108