aboutsummaryrefslogtreecommitdiff
path: root/third_party/tinycbor/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tinycbor/BUILD.gn')
-rw-r--r--third_party/tinycbor/BUILD.gn10
1 files changed, 8 insertions, 2 deletions
diff --git a/third_party/tinycbor/BUILD.gn b/third_party/tinycbor/BUILD.gn
index f478381c..5127febb 100644
--- a/third_party/tinycbor/BUILD.gn
+++ b/third_party/tinycbor/BUILD.gn
@@ -2,6 +2,8 @@
# 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",
@@ -14,8 +16,12 @@ source_set("tinycbor") {
"src/src/utf8_p.h",
]
- configs -= [ "//build/config:symbol_visibility_hidden" ]
- configs += [ "//build/config:symbol_visibility_default" ]
+ 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" ]
}