xref: /aosp_15_r20/external/openscreen/third_party/tinycbor/BUILD.gn (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
1# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build_overrides/build.gni")
6
7config("tinycbor_internal_config") {
8  defines = [ "WITHOUT_OPEN_MEMSTREAM" ]
9  cflags = [ "-w" ]  # Disable all warnings.
10}
11
12source_set("tinycbor") {
13  sources = [
14    "src/src/cbor.h",
15    "src/src/cborencoder.c",
16    "src/src/cborencoder_close_container_checked.c",
17    "src/src/cborerrorstrings.c",
18    "src/src/cborparser.c",
19    "src/src/cborpretty.c",
20    "src/src/cborvalidation.c",
21    "src/src/utf8_p.h",
22  ]
23
24  configs += [ ":tinycbor_internal_config" ]
25}
26