aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-01-25 23:56:12 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-01-25 23:56:12 +0000
commit5dbbf55877b2b91996a164c794bf9b28607a3f25 (patch)
treebac316d51d9d442b03c53742fcb3ecbc45c12b4e
parent050a843888db2db4ff9b6f38d4805036fef96794 (diff)
parentf13721ff9ebc324cf5ab97a704cc1f259476915a (diff)
downloadfec-5dbbf55877b2b91996a164c794bf9b28607a3f25.tar.gz
Convert "fec" to soong. am: b78c9dae10
am: f13721ff9e Change-Id: I9c40e5fabcae7efd28d7f27c6aa8fdc9111615b6
-rw-r--r--Android.bp30
-rw-r--r--Android.mk24
2 files changed, 30 insertions, 24 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..62740c7
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,30 @@
+// Copyright 2017 The Android Open Source Project
+
+cc_library_static {
+ name: "libfec_rs",
+ host_supported: true,
+ srcs: [
+ "encode_rs_char.c",
+ "decode_rs_char.c",
+ "init_rs_char.c",
+ ],
+ cflags: ["-Wall", "-O3"],
+ export_include_dirs: ["."],
+
+ clang: true,
+ target: {
+ linux: {
+ sanitize: {
+ misc_undefined: ["integer"],
+ },
+ },
+ android: {
+ sanitize: {
+ misc_undefined: ["integer"],
+ },
+ },
+ windows: {
+ enabled: true,
+ },
+ },
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 9b2d6da..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-
-common_src_files := \
- encode_rs_char.c \
- decode_rs_char.c \
- init_rs_char.c
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := libfec_rs
-LOCAL_CLANG := true
-LOCAL_CFLAGS := -Wall -O3
-LOCAL_SANITIZE := integer
-LOCAL_SRC_FILES := $(common_src_files)
-include $(BUILD_STATIC_LIBRARY)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := libfec_rs
-LOCAL_CLANG := true
-LOCAL_CFLAGS := -Wall -O3
-ifeq ($(HOST_OS),linux)
-LOCAL_SANITIZE := integer
-endif
-LOCAL_SRC_FILES := $(common_src_files)
-include $(BUILD_HOST_STATIC_LIBRARY)