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 19include $(CLEAR_VARS) 20LOCAL_MODULE := libhwbinder_benchmark 21LOCAL_MODULE_STEM_64 := libhwbinder_benchmark64 22LOCAL_MODULE_STEM_32 := libhwbinder_benchmark32 23 24LOCAL_MODULE_TAGS := eng tests 25 26LOCAL_SRC_FILES := Benchmark.cpp 27LOCAL_SHARED_LIBRARIES := \ 28 libhwbinder \ 29 libhidlbase \ 30 libhidltransport \ 31 liblog \ 32 libutils \ 33 android.hardware.tests.libhwbinder@1.0 34LOCAL_REQUIRED_MODULES := android.hardware.tests.libhwbinder@1.0-impl 35 36LOCAL_MULTILIB := both 37 38include $(BUILD_NATIVE_BENCHMARK) 39 40 41# build for benchmark test based on binder. 42include $(CLEAR_VARS) 43LOCAL_MODULE := libbinder_benchmark 44LOCAL_MODULE_STEM_64 := libbinder_benchmark64 45LOCAL_MODULE_STEM_32 := libbinder_benchmark32 46 47LOCAL_MODULE_TAGS := eng tests 48 49LOCAL_SRC_FILES := Benchmark_binder.cpp 50LOCAL_SHARED_LIBRARIES := \ 51 libbinder \ 52 libutils \ 53 android.hardware.tests.libbinder 54 55LOCAL_MULTILIB := both 56 57include $(BUILD_NATIVE_BENCHMARK) 58 59# build for throughput benchmark test for hwbinder. 60include $(CLEAR_VARS) 61LOCAL_MODULE := hwbinderThroughputTest 62 63LOCAL_MODULE_TAGS := eng tests 64 65LOCAL_SRC_FILES := Benchmark_throughput.cpp 66LOCAL_SHARED_LIBRARIES := \ 67 libhwbinder \ 68 libhidlbase \ 69 libhidltransport \ 70 liblog \ 71 libutils \ 72 android.hardware.tests.libhwbinder@1.0 73 74LOCAL_REQUIRED_MODULES := android.hardware.tests.libhwbinder@1.0-impl 75LOCAL_C_INCLUDES := system/libhwbinder/include 76 77LOCAL_MULTILIB := both 78include $(BUILD_NATIVE_TEST) 79 80# build for latency benchmark test for hwbinder. 81include $(CLEAR_VARS) 82LOCAL_MODULE := libhwbinder_latency 83 84LOCAL_MODULE_TAGS := eng tests 85 86LOCAL_SRC_FILES := Latency.cpp PerfTest.cpp 87LOCAL_SHARED_LIBRARIES := \ 88 libhwbinder \ 89 libhidlbase \ 90 libhidltransport \ 91 liblog \ 92 libutils \ 93 android.hardware.tests.libhwbinder@1.0 94 95LOCAL_REQUIRED_MODULES := android.hardware.tests.libhwbinder@1.0-impl 96LOCAL_C_INCLUDES := system/libhwbinder/include 97 98LOCAL_MULTILIB := both 99include $(BUILD_NATIVE_TEST) 100