aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2017-11-08 09:37:49 -0800
committerJanis Danisevskis <jdanis@google.com>2018-01-17 13:15:59 -0800
commitdd6fcf75d70cf6f9d06014813df325b3574032a7 (patch)
treee26b3d34f7af5f281125a1ca7dfae3a3341a81de
parent3798baae63cca5d67e550ee3ef449bc56f80958b (diff)
downloadplatform_external_cn-cbor-dd6fcf75d70cf6f9d06014813df325b3574032a7.tar.gz
platform_external_cn-cbor-dd6fcf75d70cf6f9d06014813df325b3574032a7.tar.bz2
platform_external_cn-cbor-dd6fcf75d70cf6f9d06014813df325b3574032a7.zip
-rw-r--r--Android.bp32
-rw-r--r--METADATA17
-rw-r--r--MODULE_LICENSE_MIT0
3 files changed, 49 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..08a727b
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,32 @@
+
+cc_library {
+ name: "libcn-cbor",
+ vendor_available: true,
+ vndk: {
+ enabled: true,
+ },
+ srcs: [
+ "src/cn-cbor.c",
+ "src/cn-create.c",
+ "src/cn-encoder.c",
+ "src/cn-error.c",
+ "src/cn-get.c",
+ ],
+ local_include_dirs: [
+ "include",
+ ],
+ export_include_dirs: [
+ "include",
+ ],
+ unique_host_soname: true,
+ host_supported: true,
+}
+
+cc_test {
+ name: "cn-cbor_test",
+ host_supported: true,
+ srcs: [
+ "test/cbor_test.c",
+ ],
+ shared_libs: [ "libcn-cbor", ],
+}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..14483ca
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,17 @@
+name: "cn-cbor"
+description:
+ "cn-cbor: A constrained node implementation of CBOR in C"
+
+third_party {
+ url {
+ type: HOMEPAGE
+ value: "https://github.com/cabo/cn-cbor"
+ }
+ url {
+ type: GIT
+ value: "https://github.com/cabo/cn-cbor.git"
+ }
+ version: "2f9c3b1931eb012909e74f3b628e6a31fd446ad1"
+ last_upgrade_date { year: 2017 month: 11 day: 8 }
+ license_type: NOTICE
+}
diff --git a/MODULE_LICENSE_MIT b/MODULE_LICENSE_MIT
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_MIT