summaryrefslogtreecommitdiff
path: root/Android_bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android_bp')
-rw-r--r--Android_bp89
1 files changed, 89 insertions, 0 deletions
diff --git a/Android_bp b/Android_bp
new file mode 100644
index 0000000..9255d37
--- /dev/null
+++ b/Android_bp
@@ -0,0 +1,89 @@
+package {
+ default_applicable_licenses: ["external_tinycompress_license"],
+}
+
+// Added automatically by a large-scale-change
+//
+// large-scale-change filtered out the below license kinds as false-positives:
+// SPDX-license-identifier-LGPL
+// SPDX-license-identifier-LGPL-2.1
+// See: http://go/android-license-faq
+license {
+ name: "external_tinycompress_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ ],
+ license_text: [
+ "NOTICE",
+ ],
+}
+
+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",
+ "compress_hw.c",
+ "compress_plugin.c",
+ "snd_utils.c",
+ ],
+ shared_libs: [
+ "libcutils",
+ "libutils",
+ ],
+ header_libs: [
+ "device_kernel_headers",
+ ],
+}
+
+cc_library_shared {
+ name: "libtinycompress_vendor",
+ 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",
+ ],
+}