From 56546c0b273e40d24b12672d1dd1d03ee7b7962c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 19 Apr 2017 16:46:46 -0700 Subject: [PATCH] Convert libnetutils to Android.bp See build/soong/README.md for more information. Test: m -j checkbuild Bug: 37567578 cherry picked from cafe889aa8ba4d77caec15620e9fbc1dbc995e58 Merged-In: Ia11dffde6fc4d89be6ee651be06b48131c877dc0 Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0 --- libnetutils/Android.bp | 19 +++++++++++++++++++ libnetutils/Android.mk | 21 --------------------- 2 files changed, 19 insertions(+), 21 deletions(-) create mode 100644 libnetutils/Android.bp delete mode 100644 libnetutils/Android.mk diff --git a/libnetutils/Android.bp b/libnetutils/Android.bp new file mode 100644 index 000000000..f710ba29e --- /dev/null +++ b/libnetutils/Android.bp @@ -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"], +} diff --git a/libnetutils/Android.mk b/libnetutils/Android.mk deleted file mode 100644 index 215027988..000000000 --- a/libnetutils/Android.mk +++ /dev/null @@ -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)