diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-11-16 13:03:43 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-11-16 13:03:43 -0800 |
commit | 983d0f3f2c1d5deb497380a4ee31c05552075a43 (patch) | |
tree | f83a877ca583226b1990c0247031ead250082ea1 | |
parent | 17b2c31bb8e7d8146e6b4aa99d7b1b25861e2ba8 (diff) | |
download | iputils-983d0f3f2c1d5deb497380a4ee31c05552075a43.tar.gz |
Convert to Android.bp
See build/soong/README.md for more information.
The previously debug tagged modules have now been added to
PRODUCT_PACKAGES_DEBUG in base_system.mk.
Test: cd external/iputils; mma
Change-Id: Ibbdae542b4b00b95bbf4a1f68306d10e4751bce4
-rw-r--r-- | Android.bp | 55 | ||||
-rw-r--r-- | Android.mk | 50 |
2 files changed, 55 insertions, 50 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..79e8520 --- /dev/null +++ b/Android.bp @@ -0,0 +1,55 @@ +cc_defaults { + name: "iputils_defaults", + cflags: [ + "-D_GNU_SOURCE", + "-Wall", + "-Werror", + "-Wno-constant-conversion", + "-Wno-missing-field-initializers", + "-Wno-sign-compare", + "-Wno-unused-parameter", + ], +} + +cc_binary { + name: "ping", + defaults: ["iputils_defaults"], + srcs: [ + "ping.c", + "ping_common.c", + ], +} + +cc_binary { + name: "ping6", + defaults: ["iputils_defaults"], + shared_libs: ["libcrypto"], + srcs: [ + "ping6.c", + "ping_common.c", + ], +} + +cc_binary { + name: "tracepath", + defaults: ["iputils_defaults"], + srcs: ["tracepath.c"], +} + +cc_binary { + name: "tracepath6", + defaults: ["iputils_defaults"], + srcs: ["tracepath6.c"], +} + +cc_binary { + name: "traceroute6", + defaults: ["iputils_defaults"], + srcs: ["traceroute6.c"], +} + +cc_binary { + name: "arping", + defaults: ["iputils_defaults"], + srcs: ["arping.c"], +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index e0acf1a..0000000 --- a/Android.mk +++ /dev/null @@ -1,50 +0,0 @@ -LOCAL_PATH:= $(call my-dir) - -iputils_cflags := \ - -D_GNU_SOURCE \ - -Wall -Werror \ - -Wno-constant-conversion \ - -Wno-missing-field-initializers \ - -Wno-sign-compare \ - -Wno-unused-parameter \ - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := ping -LOCAL_SRC_FILES := ping.c ping_common.c -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := ping6 -LOCAL_SHARED_LIBRARIES := libcrypto -LOCAL_SRC_FILES := ping6.c ping_common.c -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := tracepath -LOCAL_MODULE_TAGS := debug -LOCAL_SRC_FILES := tracepath.c -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := tracepath6 -LOCAL_MODULE_TAGS := debug -LOCAL_SRC_FILES := tracepath6.c -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := traceroute6 -LOCAL_MODULE_TAGS := debug -LOCAL_SRC_FILES := traceroute6.c -include $(BUILD_EXECUTABLE) - -include $(CLEAR_VARS) -LOCAL_CFLAGS := $(iputils_cflags) -LOCAL_MODULE := arping -LOCAL_MODULE_TAGS := debug -LOCAL_SRC_FILES := arping.c -include $(BUILD_EXECUTABLE) |