forked from CyanogenMod/android_system_netd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Android.mk
94 lines (76 loc) · 3.18 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
BandwidthController.cpp \
ClatdController.cpp \
CommandListener.cpp \
DnsProxyListener.cpp \
FirewallController.cpp \
IdletimerController.cpp \
InterfaceController.cpp \
MDnsSdListener.cpp \
NatController.cpp \
NetdCommand.cpp \
NetdConstants.cpp \
NetlinkHandler.cpp \
NetlinkManager.cpp \
PppController.cpp \
ResolverController.cpp \
SecondaryTableController.cpp \
TetherController.cpp \
oem_iptables_hook.cpp \
main.cpp \
RouteController.cpp
LOCAL_MODULE:= netd
LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \
external/mdnsresponder/mDNSShared \
external/openssl/include \
external/stlport/stlport \
bionic \
bionic/libc/private \
$(call include-path-for, libhardware_legacy)/hardware_legacy
LOCAL_CFLAGS := -Werror=format
LOCAL_SHARED_LIBRARIES := libstlport libsysutils liblog libcutils libnetutils \
libcrypto libhardware_legacy libmdnssd libdl \
liblogwrap
ifdef USES_TI_MAC80211
LOCAL_SRC_FILES += SoftapControllerTI.cpp
else ifeq ($(WIFI_DRIVER_MODULE_NAME),ar6000)
ifneq ($(WIFI_DRIVER_MODULE_PATH),rfkill)
LOCAL_CFLAGS += -DWIFI_MODULE_PATH=\"$(WIFI_DRIVER_MODULE_PATH)\"
endif
LOCAL_C_INCLUDES += external/wpa_supplicant_8/src/common
LOCAL_SRC_FILES += SoftapControllerATH.cpp
LOCAL_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES) libwpa_client
LOCAL_CFLAGS += -DBLADE_SOFTAP
else
LOCAL_SRC_FILES += SoftapController.cpp
endif
ifdef WIFI_DRIVER_MODULE_AP_ARG
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_AP_ARG=\"$(WIFI_DRIVER_MODULE_AP_ARG)\"
endif
ifneq ($(BOARD_HOSTAPD_DRIVER),)
LOCAL_CFLAGS += -DHAVE_HOSTAPD
ifneq ($(BOARD_HOSTAPD_DRIVER_NAME),)
LOCAL_CFLAGS += -DHOSTAPD_DRIVER_NAME=\"$(BOARD_HOSTAPD_DRIVER_NAME)\"
endif
endif
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES) libbluedroid
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DHAVE_BLUETOOTH
endif
ifeq ($(BOARD_HAS_QCOM_WLAN_SDK), true)
LOCAL_SRC_FILES += QualcommSoftapCmd.cpp
LOCAL_CFLAGS += -DQCOM_WLAN
LOCAL_SHARED_LIBRARIES += libqsap_sdk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../qcom/softap/sdk/
endif
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
ndc.c \
LOCAL_MODULE:= ndc
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
LOCAL_CFLAGS :=
LOCAL_SHARED_LIBRARIES := libcutils
include $(BUILD_EXECUTABLE)