OSDN Git Service

Move nl80211 code to its own library
authorNingyuan Wang <nywang@google.com>
Thu, 30 Jun 2016 21:29:11 +0000 (14:29 -0700)
committerNingyuan Wang <nywang@google.com>
Thu, 30 Jun 2016 21:44:31 +0000 (14:44 -0700)
BUG=29454786
TEST=compile
TEST=unit tests passed

Change-Id: I30db0ec98876967221c15c1519cd5c98211ca379

Android.mk

index ce9fa9b..7ef345a 100644 (file)
@@ -45,16 +45,29 @@ LOCAL_SRC_FILES := \
     ap_interface_impl.cpp \
     client_interface.cpp \
     looper_backed_event_loop.cpp \
-    net/nl80211_attribute.cpp \
     server.cpp
 LOCAL_SHARED_LIBRARIES := \
     libbase \
     libutils
+LOCAL_STATIC_LIBRARIES := \
+    libwificond_nl
 LOCAL_WHOLE_STATIC_LIBRARIES := \
     libwificond_ipc
 include $(BUILD_STATIC_LIBRARY)
 
 ###
+### wificond netlink library
+###
+include $(CLEAR_VARS)
+LOCAL_MODULE := libwificond_nl
+LOCAL_CPPFLAGS := $(wificond_cpp_flags)
+LOCAL_SRC_FILES := \
+    net/nl80211_attribute.cpp
+LOCAL_SHARED_LIBRARIES := \
+    libbase
+include $(BUILD_STATIC_LIBRARY)
+
+###
 ### wificond IPC interface library
 ###
 include $(CLEAR_VARS)
@@ -96,6 +109,7 @@ LOCAL_SRC_FILES := \
 LOCAL_STATIC_LIBRARIES := \
     libgmock \
     libwificond \
+    libwificond_nl \
     libwificond_test_utils \
     libbase \
     libutils \