Index: third_party/woff2/BUILD.gn |
diff --git a/third_party/woff2/BUILD.gn b/third_party/woff2/BUILD.gn |
index 0047fefd3dcf5a0700788272cb3ba016410749ef..b7abd1953879eb7fd00dd5ee85254660573bb091 100644 |
--- a/third_party/woff2/BUILD.gn |
+++ b/third_party/woff2/BUILD.gn |
@@ -2,6 +2,12 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+config("woff2_warnings") { |
+ if (!is_win || is_clang) { |
+ cflags = [ "-Wno-unused-function" ] |
+ } |
+} |
+ |
source_set("woff2_dec") { |
sources = [ |
"src/buffer.h", |
@@ -15,10 +21,13 @@ source_set("woff2_dec") { |
"src/woff2_common.h", |
"src/woff2_dec.cc", |
"src/woff2_dec.h", |
+ "src/woff2_out.cc", |
+ "src/woff2_out.h", |
] |
configs -= [ "//build/config/compiler:chromium_code" ] |
configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ ":woff2_warnings" ] |
deps = [ |
"//third_party/brotli", |