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)
18include $(CLEAR_VARS)
19LOCAL_MODULE := fmq_test
20LOCAL_MODULE_CLASS := NATIVE_TESTS
21LOCAL_SRC_FILES := fmq_test
22LOCAL_REQUIRED_MODULES :=                           \
23    mq_test_client                                  \
24    android.hardware.tests.msgq@1.0-service-test    \
25    mq_test_client_32                               \
26    android.hardware.tests.msgq@1.0-service-test_32 \
27    hidl_test_helper
28
29include $(BUILD_PREBUILT)
30
31include $(CLEAR_VARS)
32LOCAL_SRC_FILES := \
33    msgq_test_client.cpp
34
35LOCAL_SHARED_LIBRARIES := \
36    libhidlbase \
37    libhidltransport  \
38    libhwbinder \
39    libcutils \
40    libutils \
41    libbase \
42    libfmq \
43    liblog
44LOCAL_CFLAGS := -Wall -Werror
45LOCAL_SHARED_LIBRARIES += android.hardware.tests.msgq@1.0 libfmq
46LOCAL_MODULE := mq_test_client
47LOCAL_REQUIRED_MODULES := \
48    android.hardware.tests.msgq@1.0-impl_32 \
49    android.hardware.tests.msgq@1.0-impl
50
51include $(BUILD_NATIVE_TEST)
52
53include $(CLEAR_VARS)
54LOCAL_SRC_FILES := \
55    mq_test.cpp
56LOCAL_STATIC_LIBRARIES := libutils libcutils liblog
57LOCAL_SHARED_LIBRARIES := \
58    libhidlbase \
59    libhidltransport \
60    libhwbinder \
61    libbase \
62    libfmq
63LOCAL_MODULE := mq_test
64LOCAL_CFLAGS := -Wall -Werror
65include $(BUILD_NATIVE_TEST)
66
67include $(CLEAR_VARS)
68
69LOCAL_MODULE := VtsFmqUnitTests
70VTS_CONFIG_SRC_DIR := system/libfmq/tests
71include test/vts/tools/build/Android.host_config.mk
72