summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEnrico Granata <egranata@google.com>2019-05-09 15:13:34 -0700
committerEnrico Granata <egranata@google.com>2019-05-10 17:47:56 -0700
commit6a8782c7506c89c95cd7443580458a49559f8291 (patch)
treed761d6ddba2816e934d559d2c5c3a36ef182e4b1 /src
parent19d8880b3215b7d3d2e77545a7fe13cc3efa0776 (diff)
downloadlibiio-6a8782c7506c89c95cd7443580458a49559f8291.tar.gz
libiio: Initial Android.bp build file
This introduces the required build logic to create libiio.so in the Android build system. It adds: - a blueprint file; - an explicitly generated iio-config.h, as this is ordinarily produced via CMake, and this doesn't seem possible to replicate trivially under Soong; - an include file for exporting. BUG=b:128636517 Test: mmma external/libiio Signed-off-by: Enrico Granata <egranata@chromium.org> Change-Id: Id392839a79ea8c45ed5d45381cdc56ff4be68f3d
Diffstat (limited to 'src')
-rw-r--r--src/iio-config.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/iio-config.h b/src/iio-config.h
new file mode 100644
index 0000000..312c7a7
--- /dev/null
+++ b/src/iio-config.h
@@ -0,0 +1,30 @@
+#ifndef IIO_CONFIG_H
+#define IIO_CONFIG_H
+
+#define LIBIIO_VERSION_MAJOR 0
+#define LIBIIO_VERSION_MINOR 15
+#define LIBIIO_VERSION_GIT "19d8880"
+
+#define LOG_LEVEL Info
+
+#define WITH_LOCAL_BACKEND
+#undef WITH_XML_BACKEND
+#undef WITH_NETWORK_BACKEND
+#undef WITH_USB_BACKEND
+#undef WITH_SERIAL_BACKEND
+#undef WITH_MATLAB_BINDINGS_API
+
+#undef WITH_NETWORK_GET_BUFFER
+#undef WITH_NETWORK_EVENTFD
+#undef WITH_IIOD_USBD
+#undef WITH_LOCAL_CONFIG
+#define HAS_PIPE2
+#define HAS_STRDUP
+#define HAS_STRERROR_R
+#define HAS_NEWLOCALE
+#define HAS_PTHREAD_SETNAME_NP
+#undef HAVE_IPV6
+#undef HAVE_AVAHI
+#undef NO_THREADS
+
+#endif /* IIO_CONFIG_H */