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 import("../../build/webrtc.gni") | 9 import("../../build/webrtc.gni") |
10 import("//testing/test.gni") | |
11 | 10 |
12 # Note this target is missing an implementation for the video capture. | 11 # Note this target is missing an implementation for the video capture. |
13 # Targets must link with either 'video_capture' or | 12 # Targets must link with either 'video_capture' or |
14 # 'video_capture_internal_impl' depending on whether they want to | 13 # 'video_capture_internal_impl' depending on whether they want to |
15 # use the internal capturer. | 14 # use the internal capturer. |
16 source_set("video_capture_module") { | 15 rtc_source_set("video_capture_module") { |
17 sources = [ | 16 sources = [ |
18 "device_info_impl.cc", | 17 "device_info_impl.cc", |
19 "device_info_impl.h", | 18 "device_info_impl.h", |
20 "video_capture.h", | 19 "video_capture.h", |
21 "video_capture_config.h", | 20 "video_capture_config.h", |
22 "video_capture_defines.h", | 21 "video_capture_defines.h", |
23 "video_capture_delay.h", | 22 "video_capture_delay.h", |
24 "video_capture_factory.cc", | 23 "video_capture_factory.cc", |
25 "video_capture_factory.h", | 24 "video_capture_factory.h", |
26 "video_capture_impl.cc", | 25 "video_capture_impl.cc", |
27 "video_capture_impl.h", | 26 "video_capture_impl.h", |
28 ] | 27 ] |
29 | 28 |
30 deps = [ | 29 deps = [ |
31 "../..:webrtc_common", | 30 "../..:webrtc_common", |
32 "../../common_video", | 31 "../../common_video", |
33 "../../system_wrappers", | 32 "../../system_wrappers", |
34 "../utility", | 33 "../utility", |
35 ] | 34 ] |
36 | 35 |
37 configs += [ "../..:common_config" ] | 36 configs += [ "../..:common_config" ] |
38 public_configs = [ "../..:common_inherited_config" ] | 37 public_configs = [ "../..:common_inherited_config" ] |
39 | 38 |
40 if (is_clang) { | 39 if (is_clang) { |
41 # Suppress warnings from Chrome's Clang plugins. | 40 # Suppress warnings from Chrome's Clang plugins. |
42 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 41 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
43 configs -= [ "//build/config/clang:find_bad_constructs" ] | 42 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
44 } | 43 } |
45 } | 44 } |
46 | 45 |
47 source_set("video_capture") { | 46 rtc_source_set("video_capture") { |
48 sources = [ | 47 sources = [ |
49 "external/device_info_external.cc", | 48 "external/device_info_external.cc", |
50 "external/video_capture_external.cc", | 49 "external/video_capture_external.cc", |
51 ] | 50 ] |
52 | 51 |
53 deps = [ | 52 deps = [ |
54 ":video_capture_module", | 53 ":video_capture_module", |
55 "../../system_wrappers", | 54 "../../system_wrappers", |
56 ] | 55 ] |
57 | 56 |
58 configs += [ "../..:common_config" ] | 57 configs += [ "../..:common_config" ] |
59 public_configs = [ "../..:common_inherited_config" ] | 58 public_configs = [ "../..:common_inherited_config" ] |
60 | 59 |
61 if (is_clang) { | 60 if (is_clang) { |
62 # Suppress warnings from Chrome's Clang plugins. | 61 # Suppress warnings from Chrome's Clang plugins. |
63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 62 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
64 configs -= [ "//build/config/clang:find_bad_constructs" ] | 63 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
65 } | 64 } |
66 } | 65 } |
67 | 66 |
68 if (!build_with_chromium) { | 67 if (!build_with_chromium) { |
69 config("video_capture_internal_impl_config") { | 68 config("video_capture_internal_impl_config") { |
70 if (is_ios) { | 69 if (is_ios) { |
71 libs = [ | 70 libs = [ |
72 "AVFoundation.framework", | 71 "AVFoundation.framework", |
73 "CoreMedia.framework", | 72 "CoreMedia.framework", |
74 "CoreVideo.framework", | 73 "CoreVideo.framework", |
(...skipping 12 matching lines...) Expand all Loading... |
87 "-Wno-ignored-qualifiers", | 86 "-Wno-ignored-qualifiers", |
88 "-Wno-microsoft-extra-qualification", | 87 "-Wno-microsoft-extra-qualification", |
89 "-Wno-missing-braces", | 88 "-Wno-missing-braces", |
90 "-Wno-overloaded-virtual", | 89 "-Wno-overloaded-virtual", |
91 "-Wno-reorder", | 90 "-Wno-reorder", |
92 "-Wno-writable-strings", | 91 "-Wno-writable-strings", |
93 ] | 92 ] |
94 } | 93 } |
95 } | 94 } |
96 | 95 |
97 source_set("video_capture_internal_impl") { | 96 rtc_source_set("video_capture_internal_impl") { |
98 configs += [ ":video_capture_internal_impl_warnings_config" ] | 97 configs += [ ":video_capture_internal_impl_warnings_config" ] |
99 | 98 |
100 deps = [ | 99 deps = [ |
101 ":video_capture_module", | 100 ":video_capture_module", |
102 "../../system_wrappers", | 101 "../../system_wrappers", |
103 ] | 102 ] |
104 | 103 |
105 if (is_linux) { | 104 if (is_linux) { |
106 sources = [ | 105 sources = [ |
107 "linux/device_info_linux.cc", | 106 "linux/device_info_linux.cc", |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 } | 178 } |
180 | 179 |
181 all_dependent_configs = [ ":video_capture_internal_impl_config" ] | 180 all_dependent_configs = [ ":video_capture_internal_impl_config" ] |
182 | 181 |
183 configs += [ "../..:common_config" ] | 182 configs += [ "../..:common_config" ] |
184 public_configs = [ "../..:common_inherited_config" ] | 183 public_configs = [ "../..:common_inherited_config" ] |
185 | 184 |
186 if (is_clang) { | 185 if (is_clang) { |
187 # Suppress warnings from Chrome's Clang plugins. | 186 # Suppress warnings from Chrome's Clang plugins. |
188 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 187 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
189 configs -= [ "//build/config/clang:find_bad_constructs" ] | 188 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
190 } | 189 } |
191 } | 190 } |
192 | 191 |
193 if (!is_android && rtc_include_tests) { | 192 if (!is_android && rtc_include_tests) { |
194 test("video_capture_tests") { | 193 rtc_test("video_capture_tests") { |
195 sources = [ | 194 sources = [ |
196 "test/video_capture_main_mac.mm", | 195 "test/video_capture_main_mac.mm", |
197 "test/video_capture_unittest.cc", | 196 "test/video_capture_unittest.cc", |
198 ] | 197 ] |
199 | 198 |
200 cflags = [] | 199 cflags = [] |
201 if (is_linux || is_mac) { | 200 if (is_linux || is_mac) { |
202 cflags += [ "-Wno-write-strings" ] | 201 cflags += [ "-Wno-write-strings" ] |
203 } | 202 } |
204 | 203 |
(...skipping 22 matching lines...) Expand all Loading... |
227 ] | 226 ] |
228 if (is_mac) { | 227 if (is_mac) { |
229 deps += [ "//webrtc/test:test_support_main_threaded_mac" ] | 228 deps += [ "//webrtc/test:test_support_main_threaded_mac" ] |
230 } else { | 229 } else { |
231 deps += [ "//webrtc/test:test_support_main" ] | 230 deps += [ "//webrtc/test:test_support_main" ] |
232 } | 231 } |
233 | 232 |
234 if (is_clang) { | 233 if (is_clang) { |
235 # Suppress warnings from Chrome's Clang plugins. | 234 # Suppress warnings from Chrome's Clang plugins. |
236 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 235 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
237 configs -= [ "//build/config/clang:find_bad_constructs" ] | 236 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
238 } | 237 } |
239 } | 238 } |
240 } | 239 } |
241 } | 240 } |
OLD | NEW |