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# 17# Note: netd benchmark can't build on nyc-mr2-dev, because google-benchmark project is out of date 18# and won't be backported, and thus the content of this file is commented out to disable it. 19# In order to run netd benchmark locally you can uncomment the content of this file and follow 20# instructions in ag/1673408 (checkout that commit and build external/google-benchmark and 21# system/netd locally and then run the benchmark locally) 22# 23# 24#LOCAL_PATH := $(call my-dir) 25# 26## APCT build target for metrics tests 27#include $(CLEAR_VARS) 28#LOCAL_MODULE := netd_benchmark 29#LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter 30## Bug: http://b/29823425 Disable -Wvarargs for Clang update to r271374 31#LOCAL_CFLAGS += -Wno-varargs 32 33#EXTRA_LDLIBS := -lpthread 34#LOCAL_SHARED_LIBRARIES += libbase libbinder liblog libnetd_client 35#LOCAL_STATIC_LIBRARIES += libnetd_test_dnsresponder libtestUtil libutils 36 37#LOCAL_AIDL_INCLUDES := system/netd/server/binder 38#LOCAL_C_INCLUDES += system/netd/include \ 39# system/extras/tests/include \ 40# system/netd/client \ 41# system/netd/server \ 42# system/netd/server/binder \ 43# system/netd/tests/dns_responder \ 44# system/extras/tests/include \ 45# bionic/libc/dns/include 46 47#LOCAL_SRC_FILES := main.cpp \ 48# connect_benchmark.cpp \ 49# dns_benchmark.cpp \ 50# ../../server/binder/android/net/metrics/INetdEventListener.aidl 51 52#LOCAL_MODULE_TAGS := eng tests 53 54#include $(BUILD_NATIVE_BENCHMARK) 55