Audio mp3 codec issue fixes
Desc: Mp3 format supported for limited file size, larger file
size leading the audioserver.so crash, fixed in this patch
Issue: FP2P-114
Change-Id: I7399f3698e2b12e94b0e1ca681ad452927df2ba0
diff --git a/Android.bp b/Android.bp
deleted file mode 100644
index f0000f1..0000000
--- a/Android.bp
+++ /dev/null
@@ -1,41 +0,0 @@
-cc_library_shared {
- name: "libtinycompress",
- vendor: true,
-
- cflags: [
- "-Wall",
- "-Werror",
- "-Wno-macro-redefined",
- "-Wno-unused-function",
- ],
- export_include_dirs: ["include"],
- srcs: [
- "compress.c",
- "utils.c",
- ],
- shared_libs: [
- "libcutils",
- "libutils",
- ],
- header_libs: [
- "device_kernel_headers",
- ],
-}
-
-cc_binary {
- name: "cplay",
- vendor: true,
-
- cflags: [
- "-Wall",
- "-Werror",
- "-Wno-macro-redefined"
- ],
- local_include_dirs: ["include"],
- srcs: ["cplay.c"],
- shared_libs: [
- "libcutils",
- "libutils",
- "libtinycompress",
- ],
-}
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..a4639a4
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,47 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_C_INCLUDES:= $(LOCAL_PATH)/include
+LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media
+LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/techpack/audio/include
+LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
+
+LOCAL_SRC_FILES:= compress.c
+LOCAL_MODULE := libtinycompress
+LOCAL_SHARED_LIBRARIES:= libcutils libutils
+LOCAL_MODULE_TAGS := optional
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_CFLAGS += \
+ -fno-short-enums \
+ -D_ANDROID_ \
+ -Wno-unused-variable \
+ -Wno-unused-parameter \
+ -Wno-macro-redefined \
+ -Wno-unneeded-internal-declaration \
+ -Werror \
+ -Wno-format \
+
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_C_INCLUDES:= $(LOCAL_PATH)/include
+LOCAL_SRC_FILES:= cplay.c
+LOCAL_MODULE := cplay
+LOCAL_SHARED_LIBRARIES:= libcutils libutils libtinycompress
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_CFLAGS += \
+ -fno-short-enums \
+ -D_ANDROID_ \
+ -Wno-unused-variable \
+ -Wno-unused-parameter \
+ -Wno-macro-redefined \
+ -Wno-unneeded-internal-declaration \
+ -Werror \
+ -Wno-format \
+
+include $(BUILD_EXECUTABLE)
+