aboutsummaryrefslogtreecommitdiff
path: root/third_party/tinycbor/BUILD.gn
blob: 5127febb7b38af96d9f64bb32d090f21ce1d9bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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")

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",
  ]

  config_path = "//build/config"
  if (build_with_chromium) {
    config_path += "/gcc"
  }
  configs -= [ "$config_path:symbol_visibility_hidden" ]
  configs += [ "$config_path:symbol_visibility_default" ]

  defines = [ "WITHOUT_OPEN_MEMSTREAM" ]
}