diff options
author | btolsch <btolsch@chromium.org> | 2018-09-10 10:54:06 -0700 |
---|---|---|
committer | Brandon Tolsch <btolsch@chromium.org> | 2018-09-10 18:42:06 +0000 |
commit | 31846290b2f5fe4bd586d428f28ab19ddf72b209 (patch) | |
tree | 84d421fe9720189a59a2a30aeebb8937f00c81dc /third_party/tinycbor | |
parent | 85ec17e7d528102cf183733b8abab2a5ae6982af (diff) | |
download | openscreen-31846290b2f5fe4bd586d428f28ab19ddf72b209.tar.gz |
Add tinycbor + first message example
This change adds Intel's tinycbor as a submodule along with an
encode/decode function pair for the PresentationUrlAvailabilityRequest
message.
Change-Id: I6a6f819af6e0e6c1aa3ebeb31936ca64fa3a1891
Reviewed-on: https://chromium-review.googlesource.com/1208753
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Diffstat (limited to 'third_party/tinycbor')
-rw-r--r-- | third_party/tinycbor/BUILD.gn | 22 | ||||
m--------- | third_party/tinycbor/src | 0 |
2 files changed, 22 insertions, 0 deletions
diff --git a/third_party/tinycbor/BUILD.gn b/third_party/tinycbor/BUILD.gn new file mode 100644 index 00000000..2ea7b75b --- /dev/null +++ b/third_party/tinycbor/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright 2018 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("tinycbor") { + sources = [ + "src/src/cbor.h", + "src/src/cborencoder.c", + "src/src/cborencoder_close_container_checked.c", + "src/src/cborerrorstrings.c", + "src/src/cborparser.c", + "src/src/cborpretty.c", + "src/src/cborvalidation.c", + "src/src/utf8_p.h", + ] + + configs -= [ "//build/config:openscreen_code" ] + configs -= [ "//build/config:symbol_visibility_hidden" ] + configs += [ "//build/config:symbol_visibility_default" ] + + defines = [ "WITHOUT_OPEN_MEMSTREAM" ] +} diff --git a/third_party/tinycbor/src b/third_party/tinycbor/src new file mode 160000 +Subproject bfc40dcf909f1998d7760c2bc0e1409979d3c8c |