Convert libnetutils to Android.bp

See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
This commit is contained in:
Colin Cross 2017-04-19 16:46:46 -07:00
parent 4eda982a77
commit cafe889aa8
2 changed files with 19 additions and 21 deletions

19
libnetutils/Android.bp Normal file
View 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"],
}

View File

@ -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)