• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2014 The Android Open Source Project
2#
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
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_C_INCLUDES := \
20        $(call include-path-for, libhardware_legacy)/hardware_legacy \
21        bionic/libc/dns/include \
22        external/libcxx/include \
23        external/mdnsresponder/mDNSShared \
24        external/openssl/include \
25        system/netd/include \
26
27LOCAL_CLANG := true
28LOCAL_CPPFLAGS := -std=c++11 -Wall -Werror
29LOCAL_MODULE := netd
30
31LOCAL_SHARED_LIBRARIES := \
32        libcrypto \
33        libcutils \
34        libdl \
35        libhardware_legacy \
36        liblog \
37        liblogwrap \
38        libmdnssd \
39        libnetutils \
40        libsysutils \
41
42LOCAL_SRC_FILES := \
43        BandwidthController.cpp \
44        ClatdController.cpp \
45        CommandListener.cpp \
46        DnsProxyListener.cpp \
47        FirewallController.cpp \
48        FwmarkServer.cpp \
49        IdletimerController.cpp \
50        InterfaceController.cpp \
51        LocalNetwork.cpp \
52        MDnsSdListener.cpp \
53        NatController.cpp \
54        NetdCommand.cpp \
55        NetdConstants.cpp \
56        NetlinkHandler.cpp \
57        NetlinkManager.cpp \
58        Network.cpp \
59        NetworkController.cpp \
60        PhysicalNetwork.cpp \
61        PppController.cpp \
62        ResolverController.cpp \
63        RouteController.cpp \
64        SoftapController.cpp \
65        TetherController.cpp \
66        UidRanges.cpp \
67        VirtualNetwork.cpp \
68        main.cpp \
69        oem_iptables_hook.cpp \
70
71include $(BUILD_EXECUTABLE)
72
73include $(CLEAR_VARS)
74
75LOCAL_CFLAGS := -Wall -Werror
76LOCAL_CLANG := true
77LOCAL_MODULE := ndc
78LOCAL_SHARED_LIBRARIES := libcutils
79LOCAL_SRC_FILES := ndc.c
80
81include $(BUILD_EXECUTABLE)
82