diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-11-19 15:58:36 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-11-19 15:58:36 -0800 |
commit | 0bed91a2c233728359bab7ed365e7a5994650f91 (patch) | |
tree | b1f27e6f2601640566fee3c936740be3989de8d7 | |
parent | e1fa89c56893352381e6c59b38a3412b087c3f91 (diff) | |
download | nfacct-0bed91a2c233728359bab7ed365e7a5994650f91.tar.gz |
Convert nfacct to Android.bp
See build/soong/README.md for more information.
Test: cd external/nfacct; mma
Change-Id: I56e357af64b4843d2ea1d7fcfee019f79c561444
-rw-r--r-- | Android.bp | 17 | ||||
-rw-r--r-- | Android.mk | 26 |
2 files changed, 17 insertions, 26 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..0f5b335 --- /dev/null +++ b/Android.bp @@ -0,0 +1,17 @@ +cc_binary { + name: "nfacct", + + cflags: [ + "-Wall", + "-Werror", + "-Wno-format", + "-Wno-unused-parameter", + "-Wno-unused-variable", + + "-DHAVE_LIBNL20", + ], + + srcs: ["nfacct.c"], + + shared_libs: ["libnl"], +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index c3d8283..0000000 --- a/Android.mk +++ /dev/null @@ -1,26 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) -include $(LOCAL_PATH)/android.config - -INCLUDES = $(LOCAL_PATH) -INCLUDES += external/libnl/include - -LOCAL_CFLAGS := \ - -Wall -Werror \ - -Wno-format \ - -Wno-unused-parameter \ - -Wno-unused-variable \ - -ifdef HAVE_LIBNL20 -LOCAL_CFLAGS += -DHAVE_LIBNL20 -endif - -######################## - -LOCAL_SRC_FILES:= nfacct.c -LOCAL_MODULE := nfacct - -LOCAL_SHARED_LIBRARIES += libnl -LOCAL_C_INCLUDES := $(INCLUDES) - -include $(BUILD_EXECUTABLE) |