Convert libnetutils to Android.bp
See build/soong/README.md for more information.
Test: m -j checkbuild
Bug: 37567578
cherry picked from cafe889aa8
Merged-In: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
This commit is contained in:
parent
55bb3a9f75
commit
56546c0b27
2 changed files with 19 additions and 21 deletions
19
libnetutils/Android.bp
Normal file
19
libnetutils/Android.bp
Normal file
|
@ -0,0 +1,19 @@
|
|||
cc_library_shared {
|
||||
name: "libnetutils",
|
||||
|
||||
srcs: [
|
||||
"dhcpclient.c",
|
||||
"dhcpmsg.c",
|
||||
"ifc_utils.c",
|
||||
"packet.c",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"liblog",
|
||||
],
|
||||
|
||||
cflags: ["-Werror"],
|
||||
|
||||
export_include_dirs: ["include"],
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
dhcpclient.c \
|
||||
dhcpmsg.c \
|
||||
ifc_utils.c \
|
||||
packet.c
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libcutils \
|
||||
liblog
|
||||
|
||||
LOCAL_MODULE := libnetutils
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
Loading…
Reference in a new issue