| # 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. |
| |
| import("//build_overrides/build.gni") |
| |
| config("tinycbor_internal_config") { |
| defines = [ "WITHOUT_OPEN_MEMSTREAM" ] |
| cflags = [ "-w" ] # Disable all warnings. |
| } |
| |
| 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 += [ ":tinycbor_internal_config" ] |
| } |