summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MODULE_LICENSE_GPL0
l---------NOTICE1
-rw-r--r--OWNERS3
-rw-r--r--lib/Android.bp35
-rw-r--r--lib/MODULE_LICENSE_BSD0
l---------lib/NOTICE1
-rw-r--r--programs/Android.bp31
7 files changed, 71 insertions, 0 deletions
diff --git a/MODULE_LICENSE_GPL b/MODULE_LICENSE_GPL
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_GPL
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..7a694c9
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+LICENSE \ No newline at end of file
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..0e8f820
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,3 @@
+# Default code reviewers picked from top 3 or more developers.
+# Please update this list if you find better candidates.
+dtwlin@google.com
diff --git a/lib/Android.bp b/lib/Android.bp
new file mode 100644
index 0000000..26db9bf
--- /dev/null
+++ b/lib/Android.bp
@@ -0,0 +1,35 @@
+// Copyright (C) 2015 The Android Open Source Project
+
+cc_library {
+ name: "liblz4",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.adbd",
+ "com.android.art.debug", // from libartbase
+ "com.android.art.release",
+ ],
+ recovery_available: true,
+ vendor_available: true,
+ vndk: {
+ enabled: true,
+ },
+ host_supported: true,
+ // TODO(b/153609531): remove when no longer needed.
+ native_bridge_supported: true,
+ target: {
+ windows: {
+ enabled: true,
+ shared: {
+ enabled: false,
+ },
+ },
+ },
+ srcs: [
+ "lz4.c",
+ "lz4hc.c",
+ "lz4frame.c",
+ "xxhash.c",
+ ],
+ cflags: ["-Wall", "-Werror"],
+ export_include_dirs: ["."],
+}
diff --git a/lib/MODULE_LICENSE_BSD b/lib/MODULE_LICENSE_BSD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/MODULE_LICENSE_BSD
diff --git a/lib/NOTICE b/lib/NOTICE
new file mode 120000
index 0000000..7a694c9
--- /dev/null
+++ b/lib/NOTICE
@@ -0,0 +1 @@
+LICENSE \ No newline at end of file
diff --git a/programs/Android.bp b/programs/Android.bp
new file mode 100644
index 0000000..9a6657b
--- /dev/null
+++ b/programs/Android.bp
@@ -0,0 +1,31 @@
+// Copyright (C) 2016 The Android Open Source Project
+
+cc_binary_host {
+ name: "lz4",
+ srcs: [
+ "datagen.c",
+ "bench.c",
+ "lz4io.c",
+ "lz4cli.c",
+ ],
+ cflags: ["-Wall", "-Werror"],
+ static_libs: ["liblz4"],
+ stl: "libc++_static",
+}
+
+cc_binary_host {
+ name: "lz4c",
+ cflags: [
+ "-DENABLE_LZ4C_LEGACY_OPTIONS",
+ "-Wall",
+ "-Werror",
+ ],
+ srcs: [
+ "datagen.c",
+ "bench.c",
+ "lz4io.c",
+ "lz4cli.c",
+ ],
+ static_libs: ["liblz4"],
+ stl: "libc++_static",
+}