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_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/binder
29 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/binder
30 LOCAL_C_INCLUDES := $(LOCAL_PATH)/binder
32 binder/android/net/INetd.aidl \
33 binder/android/net/UidRange.cpp
35 include $(BUILD_SHARED_LIBRARY)
43 $(call include-path-for, libhardware_legacy)/hardware_legacy \
44 bionic/libc/dns/include \
45 external/mdnsresponder/mDNSShared \
49 LOCAL_CPPFLAGS := -std=c++11 -Wall -Werror
52 LOCAL_INIT_RC := netd.rc
54 LOCAL_SHARED_LIBRARIES := \
70 LOCAL_STATIC_LIBRARIES := \
74 BandwidthController.cpp \
78 DnsProxyListener.cpp \
81 FirewallController.cpp \
83 IdletimerController.cpp \
84 InterfaceController.cpp \
90 NetdNativeService.cpp \
94 NetworkController.cpp \
97 ResolverController.cpp \
100 SoftapController.cpp \
101 StrictController.cpp \
102 TetherController.cpp \
106 oem_iptables_hook.cpp \
107 binder/android/net/metrics/IDnsEventListener.aidl \
109 LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/binder
111 include $(BUILD_EXECUTABLE)
117 include $(CLEAR_VARS)
119 LOCAL_CFLAGS := -Wall -Werror
122 LOCAL_SHARED_LIBRARIES := libcutils
123 LOCAL_SRC_FILES := ndc.c
125 include $(BUILD_EXECUTABLE)
130 include $(CLEAR_VARS)
131 LOCAL_MODULE := netd_unit_test
132 LOCAL_CFLAGS := -Wall -Werror -Wunused-parameter
133 LOCAL_C_INCLUDES := \
134 system/netd/include \
136 system/netd/server/binder \
137 system/core/logwrapper/include \
140 NetdConstants.cpp IptablesBaseTest.cpp \
141 BandwidthController.cpp BandwidthControllerTest.cpp \
142 FirewallControllerTest.cpp FirewallController.cpp \
143 NatControllerTest.cpp NatController.cpp \
144 SockDiagTest.cpp SockDiag.cpp \
145 StrictController.cpp StrictControllerTest.cpp \
148 LOCAL_MODULE_TAGS := tests
149 LOCAL_SHARED_LIBRARIES := liblog libbase libcutils liblogwrap libsysutils
150 include $(BUILD_NATIVE_TEST)