OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 if (is_win) { | 9 if (is_win) { |
10 baseclasses_dir = "src/Samples/multimedia/directshow/baseclasses" | 10 baseclasses_dir = "src/Samples/multimedia/directshow/baseclasses" |
11 | 11 |
12 config("winsdk_samples_config") { | 12 config("winsdk_samples_config") { |
13 include_dirs = [ | 13 include_dirs = [ baseclasses_dir ] |
14 baseclasses_dir, | |
15 ] | |
16 } | 14 } |
17 | 15 |
18 static_library("winsdk_samples") { | 16 static_library("winsdk_samples") { |
19 sources = [ | 17 sources = [ |
20 "$baseclasses_dir/amextra.cpp", | 18 "$baseclasses_dir/amextra.cpp", |
21 "$baseclasses_dir/amextra.h", | 19 "$baseclasses_dir/amextra.h", |
22 "$baseclasses_dir/amfilter.cpp", | 20 "$baseclasses_dir/amfilter.cpp", |
23 "$baseclasses_dir/amfilter.h", | 21 "$baseclasses_dir/amfilter.h", |
24 "$baseclasses_dir/amvideo.cpp", | 22 "$baseclasses_dir/amvideo.cpp", |
25 "$baseclasses_dir/cache.h", | 23 "$baseclasses_dir/cache.h", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 "$baseclasses_dir/wxutil.h", | 78 "$baseclasses_dir/wxutil.h", |
81 ] | 79 ] |
82 | 80 |
83 public_configs = [ ":winsdk_samples_config" ] | 81 public_configs = [ ":winsdk_samples_config" ] |
84 | 82 |
85 configs -= [ | 83 configs -= [ |
86 "//build/config/compiler:chromium_code", | 84 "//build/config/compiler:chromium_code", |
87 "//build/config/win:nominmax", | 85 "//build/config/win:nominmax", |
88 ] | 86 ] |
89 configs += [ "//build/config/compiler:no_chromium_code" ] | 87 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 88 if (is_win && is_clang) { |
| 89 cflags += [ |
| 90 # Disable warnings failing when compiling with Clang on Windows. |
| 91 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 92 "-Wno-comment", |
| 93 "-Wno-delete-non-virtual-dtor", |
| 94 "-Wno-ignored-attributes", |
| 95 "-Wno-logical-op-parentheses", |
| 96 "-Wno-non-pod-varargs", |
| 97 "-Wno-microsoft-extra-qualification", |
| 98 "-Wno-missing-braces", |
| 99 "-Wno-overloaded-virtual", |
| 100 "-Wno-parentheses", |
| 101 "-Wno-reorder", |
| 102 "-Wno-string-conversion", |
| 103 "-Wno-tautological-constant-out-of-range-compare", |
| 104 "-Wno-unused-private-field", |
| 105 "-Wno-writable-strings", |
| 106 ] |
| 107 } |
90 } | 108 } |
91 } | 109 } |
OLD | NEW |