aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2017-10-19 15:02:17 +0100
committerRichard Fitzgerald <rf@opensource.cirrus.com>2017-10-19 15:02:17 +0100
commitcdcc350bf9662030a84d9ae4b18f31e8340c5df0 (patch)
tree3123eadb09723f7141dc68dc8fc7f24761cfe3c6 /Android.bp
parentf40bda81bfb2c8d3d3ba6698695e2bedef9da278 (diff)
Replace old style Android.mk with new Android.bp
Create a new Android.bp file used by Android Oreo. There are dependencies on tinyalsa from other components in Oreo that use the new build system and these break if tinyalsa is using the older Android.mk build system. Oreo still picks up and tries to build the Android.mk found in the jni directory and this leads to a build conflict so it has been deleted. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp52
1 files changed, 52 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..0d4122d
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,52 @@
+cc_library {
+ name: "libtinyalsa",
+ host_supported: true,
+ vendor_available: true,
+ srcs: [
+ "src/mixer.c",
+ "src/pcm.c",
+ ],
+ cflags: ["-Werror", "-Wno-macro-redefined"],
+ export_include_dirs: ["include"],
+ local_include_dirs: ["include"],
+
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+}
+
+cc_binary {
+ name: "tinyplay",
+ host_supported: true,
+ srcs: ["utils/tinyplay.c"],
+ shared_libs: ["libtinyalsa"],
+ cflags: ["-Werror"],
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+}
+
+cc_binary {
+ name: "tinycap",
+ srcs: ["utils/tinycap.c"],
+ shared_libs: ["libtinyalsa"],
+ cflags: ["-Werror"],
+}
+
+cc_binary {
+ name: "tinymix",
+ srcs: ["utils/tinymix.c"],
+ shared_libs: ["libtinyalsa"],
+ cflags: ["-Werror", "-Wall"],
+}
+
+cc_binary {
+ name: "tinypcminfo",
+ srcs: ["utils/tinypcminfo.c"],
+ shared_libs: ["libtinyalsa"],
+ cflags: ["-Werror"],
+}