Index: third_party/libwebm/BUILD.gn |
diff --git a/third_party/libwebm/BUILD.gn b/third_party/libwebm/BUILD.gn |
index 0827b070fe430575d5ed2695322e961c86fb03c0..c21b01257cba72c80e10c526cea836cfc9e6b5c4 100644 |
--- a/third_party/libwebm/BUILD.gn |
+++ b/third_party/libwebm/BUILD.gn |
@@ -2,10 +2,21 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+config("libwebm_config") { |
+ include_dirs = [ "./source" ] |
+} |
+ |
source_set("libwebm") { |
+ configs += [ ":libwebm_config" ] |
+ public_configs = [ ":libwebm_config" ] |
+ |
+ if (!is_win) { |
+ cflags = [ "-Wno-deprecated-declarations" ] # libwebm uses std::auto_ptr |
+ } |
+ |
sources = [ |
- "source/mkvmuxer.cpp", |
- "source/mkvmuxerutil.cpp", |
- "source/mkvwriter.cpp", |
+ "source/mkvmuxer/mkvmuxer.cc", |
+ "source/mkvmuxer/mkvmuxerutil.cc", |
+ "source/mkvmuxer/mkvwriter.cc", |
] |
} |