1 # Copyright (C) 2014 The Android Open Source Project
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 LOCAL_PATH := $(call my-dir)
18 ### netd service AIDL interface.
22 LOCAL_CFLAGS := -Wall -Werror
24 LOCAL_MODULE := libnetdaidl
25 LOCAL_SHARED_LIBRARIES := \
28 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/binder
29 LOCAL_SRC_FILES := binder/android/net/INetd.aidl
31 include $(BUILD_SHARED_LIBRARY)
39 $(call include-path-for, libhardware_legacy)/hardware_legacy \
40 bionic/libc/dns/include \
41 external/mdnsresponder/mDNSShared \
45 LOCAL_CPPFLAGS := -std=c++11 -Wall -Werror
48 LOCAL_INIT_RC := netd.rc
50 LOCAL_SHARED_LIBRARIES := \
66 LOCAL_STATIC_LIBRARIES := \
70 BandwidthController.cpp \
74 DnsProxyListener.cpp \
77 FirewallController.cpp \
79 IdletimerController.cpp \
80 InterfaceController.cpp \
86 NetdNativeService.cpp \
90 NetworkController.cpp \
93 ResolverController.cpp \
96 SoftapController.cpp \
97 StrictController.cpp \
98 TetherController.cpp \
102 oem_iptables_hook.cpp \
103 binder/android/net/metrics/IDnsEventListener.aidl \
105 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/binder
107 include $(BUILD_EXECUTABLE)
113 include $(CLEAR_VARS)
115 LOCAL_CFLAGS := -Wall -Werror
118 LOCAL_SHARED_LIBRARIES := libcutils
119 LOCAL_SRC_FILES := ndc.c
121 include $(BUILD_EXECUTABLE)
126 include $(CLEAR_VARS)
127 LOCAL_MODULE := netd_unit_test
128 LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
129 LOCAL_C_INCLUDES := system/netd/server system/core/logwrapper/include
131 NetdConstants.cpp IptablesBaseTest.cpp \
132 BandwidthController.cpp BandwidthControllerTest.cpp \
133 FirewallControllerTest.cpp FirewallController.cpp \
134 SockDiagTest.cpp SockDiag.cpp \
135 StrictController.cpp StrictControllerTest.cpp \
138 LOCAL_MODULE_TAGS := tests
139 LOCAL_SHARED_LIBRARIES := liblog libbase libcutils liblogwrap
140 include $(BUILD_NATIVE_TEST)