kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | if (is_win) { |
| 10 | baseclasses_dir = "src/Samples/multimedia/directshow/baseclasses" |
| 11 | |
| 12 | config("winsdk_samples_config") { |
ehmaldonado | 4bc4d27 | 2016-08-25 04:15:40 -0700 | [diff] [blame^] | 13 | include_dirs = [ baseclasses_dir ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | static_library("winsdk_samples") { |
| 17 | sources = [ |
| 18 | "$baseclasses_dir/amextra.cpp", |
| 19 | "$baseclasses_dir/amextra.h", |
| 20 | "$baseclasses_dir/amfilter.cpp", |
| 21 | "$baseclasses_dir/amfilter.h", |
| 22 | "$baseclasses_dir/amvideo.cpp", |
| 23 | "$baseclasses_dir/cache.h", |
| 24 | "$baseclasses_dir/combase.cpp", |
| 25 | "$baseclasses_dir/combase.h", |
| 26 | "$baseclasses_dir/cprop.cpp", |
| 27 | "$baseclasses_dir/cprop.h", |
| 28 | "$baseclasses_dir/ctlutil.cpp", |
| 29 | "$baseclasses_dir/ctlutil.h", |
| 30 | "$baseclasses_dir/ddmm.cpp", |
| 31 | "$baseclasses_dir/ddmm.h", |
| 32 | "$baseclasses_dir/dllentry.cpp", |
| 33 | "$baseclasses_dir/dllsetup.cpp", |
| 34 | "$baseclasses_dir/dllsetup.h", |
| 35 | "$baseclasses_dir/fourcc.h", |
| 36 | "$baseclasses_dir/measure.h", |
| 37 | "$baseclasses_dir/msgthrd.h", |
| 38 | "$baseclasses_dir/mtype.cpp", |
| 39 | "$baseclasses_dir/mtype.h", |
| 40 | "$baseclasses_dir/outputq.cpp", |
| 41 | "$baseclasses_dir/outputq.h", |
| 42 | "$baseclasses_dir/pstream.cpp", |
| 43 | "$baseclasses_dir/pstream.h", |
| 44 | "$baseclasses_dir/pullpin.cpp", |
| 45 | "$baseclasses_dir/pullpin.h", |
| 46 | "$baseclasses_dir/refclock.cpp", |
| 47 | "$baseclasses_dir/refclock.h", |
| 48 | "$baseclasses_dir/reftime.h", |
| 49 | "$baseclasses_dir/renbase.cpp", |
| 50 | "$baseclasses_dir/renbase.h", |
| 51 | "$baseclasses_dir/schedule.cpp", |
| 52 | "$baseclasses_dir/seekpt.cpp", |
| 53 | "$baseclasses_dir/seekpt.h", |
| 54 | "$baseclasses_dir/source.cpp", |
| 55 | "$baseclasses_dir/source.h", |
| 56 | "$baseclasses_dir/streams.h", |
| 57 | "$baseclasses_dir/strmctl.cpp", |
| 58 | "$baseclasses_dir/strmctl.h", |
| 59 | "$baseclasses_dir/sysclock.cpp", |
| 60 | "$baseclasses_dir/sysclock.h", |
| 61 | "$baseclasses_dir/transfrm.cpp", |
| 62 | "$baseclasses_dir/transfrm.h", |
| 63 | "$baseclasses_dir/transip.cpp", |
| 64 | "$baseclasses_dir/transip.h", |
| 65 | "$baseclasses_dir/videoctl.cpp", |
| 66 | "$baseclasses_dir/videoctl.h", |
| 67 | "$baseclasses_dir/vtrans.cpp", |
| 68 | "$baseclasses_dir/vtrans.h", |
| 69 | "$baseclasses_dir/winctrl.cpp", |
| 70 | "$baseclasses_dir/winctrl.h", |
| 71 | "$baseclasses_dir/winutil.cpp", |
| 72 | "$baseclasses_dir/winutil.h", |
| 73 | "$baseclasses_dir/wxdebug.cpp", |
| 74 | "$baseclasses_dir/wxdebug.h", |
| 75 | "$baseclasses_dir/wxlist.cpp", |
| 76 | "$baseclasses_dir/wxlist.h", |
| 77 | "$baseclasses_dir/wxutil.cpp", |
| 78 | "$baseclasses_dir/wxutil.h", |
| 79 | ] |
| 80 | |
| 81 | public_configs = [ ":winsdk_samples_config" ] |
| 82 | |
| 83 | configs -= [ |
| 84 | "//build/config/compiler:chromium_code", |
| 85 | "//build/config/win:nominmax", |
| 86 | ] |
| 87 | configs += [ "//build/config/compiler:no_chromium_code" ] |
ehmaldonado | 4bc4d27 | 2016-08-25 04:15:40 -0700 | [diff] [blame^] | 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 | } |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 108 | } |
ehmaldonado | 4bc4d27 | 2016-08-25 04:15:40 -0700 | [diff] [blame^] | 109 | } |