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 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 if (is_clang) { | 54 if (is_clang) { |
55 # Suppress warnings from Chrome's Clang plugins. | 55 # Suppress warnings from Chrome's Clang plugins. |
56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 if (!build_with_chromium) { | 61 if (!build_with_chromium) { |
62 config("video_capture_internal_impl_config") { | 62 config("video_capture_internal_impl_config") { |
63 if (is_ios || is_mac) { | 63 if (is_ios) { |
64 libs = [ | 64 libs = [ |
65 "AVFoundation.framework", | 65 "AVFoundation.framework", |
66 "CoreMedia.framework", | 66 "CoreMedia.framework", |
67 "CoreVideo.framework", | 67 "CoreVideo.framework", |
68 ] | 68 ] |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 config("video_capture_internal_impl_warnings_config") { | 72 config("video_capture_internal_impl_warnings_config") { |
73 if (is_win && is_clang) { | 73 if (is_win && is_clang) { |
(...skipping 23 matching lines...) Expand all Loading... |
97 | 97 |
98 if (is_linux) { | 98 if (is_linux) { |
99 sources = [ | 99 sources = [ |
100 "linux/device_info_linux.cc", | 100 "linux/device_info_linux.cc", |
101 "linux/device_info_linux.h", | 101 "linux/device_info_linux.h", |
102 "linux/video_capture_linux.cc", | 102 "linux/video_capture_linux.cc", |
103 "linux/video_capture_linux.h", | 103 "linux/video_capture_linux.h", |
104 ] | 104 ] |
105 deps += [ "../..:webrtc_common" ] | 105 deps += [ "../..:webrtc_common" ] |
106 } | 106 } |
| 107 if (is_mac) { |
| 108 sources = [ |
| 109 "mac/qtkit/video_capture_qtkit.h", |
| 110 "mac/qtkit/video_capture_qtkit.mm", |
| 111 "mac/qtkit/video_capture_qtkit_info.h", |
| 112 "mac/qtkit/video_capture_qtkit_info.mm", |
| 113 "mac/qtkit/video_capture_qtkit_info_objc.h", |
| 114 "mac/qtkit/video_capture_qtkit_info_objc.mm", |
| 115 "mac/qtkit/video_capture_qtkit_objc.h", |
| 116 "mac/qtkit/video_capture_qtkit_objc.mm", |
| 117 "mac/qtkit/video_capture_qtkit_utility.h", |
| 118 "mac/video_capture_mac.mm", |
| 119 ] |
| 120 |
| 121 libs = [ |
| 122 # For NSAlert in video_capture_qtkit_info_objc.mm. |
| 123 "Cocoa.framework", |
| 124 |
| 125 # For GetGestalt in video_capture_mac.mm. |
| 126 "CoreServices.framework", |
| 127 "CoreVideo.framework", |
| 128 "QTKit.framework", |
| 129 ] |
| 130 } |
107 if (is_win) { | 131 if (is_win) { |
108 sources = [ | 132 sources = [ |
109 "windows/device_info_ds.cc", | 133 "windows/device_info_ds.cc", |
110 "windows/device_info_ds.h", | 134 "windows/device_info_ds.h", |
111 "windows/device_info_mf.cc", | 135 "windows/device_info_mf.cc", |
112 "windows/device_info_mf.h", | 136 "windows/device_info_mf.h", |
113 "windows/help_functions_ds.cc", | 137 "windows/help_functions_ds.cc", |
114 "windows/help_functions_ds.h", | 138 "windows/help_functions_ds.h", |
115 "windows/sink_filter_ds.cc", | 139 "windows/sink_filter_ds.cc", |
116 "windows/sink_filter_ds.h", | 140 "windows/sink_filter_ds.h", |
117 "windows/video_capture_ds.cc", | 141 "windows/video_capture_ds.cc", |
118 "windows/video_capture_ds.h", | 142 "windows/video_capture_ds.h", |
119 "windows/video_capture_factory_windows.cc", | 143 "windows/video_capture_factory_windows.cc", |
120 "windows/video_capture_mf.cc", | 144 "windows/video_capture_mf.cc", |
121 "windows/video_capture_mf.h", | 145 "windows/video_capture_mf.h", |
122 ] | 146 ] |
123 | 147 |
124 libs = [ "Strmiids.lib" ] | 148 libs = [ "Strmiids.lib" ] |
125 | 149 |
126 deps += [ "//third_party/winsdk_samples" ] | 150 deps += [ "//third_party/winsdk_samples" ] |
127 } | 151 } |
128 if (is_ios || is_mac) { | 152 if (is_ios) { |
129 sources = [ | 153 sources = [ |
130 "objc/device_info.h", | 154 "ios/device_info_ios.h", |
131 "objc/device_info.mm", | 155 "ios/device_info_ios.mm", |
132 "objc/device_info_objc.h", | 156 "ios/device_info_ios_objc.h", |
133 "objc/device_info_objc.mm", | 157 "ios/device_info_ios_objc.mm", |
134 "objc/rtc_video_capture_objc.h", | 158 "ios/rtc_video_capture_ios_objc.h", |
135 "objc/rtc_video_capture_objc.mm", | 159 "ios/rtc_video_capture_ios_objc.mm", |
136 "objc/video_capture.h", | 160 "ios/video_capture_ios.h", |
137 "objc/video_capture.mm", | 161 "ios/video_capture_ios.mm", |
138 ] | 162 ] |
139 | 163 |
140 cflags = [ | 164 cflags = [ |
141 "-fobjc-arc", # CLANG_ENABLE_OBJC_ARC = YES. | 165 "-fobjc-arc", # CLANG_ENABLE_OBJC_ARC = YES. |
142 | 166 |
143 # To avoid warnings for deprecated videoMinFrameDuration and | 167 # To avoid warnings for deprecated videoMinFrameDuration and |
144 # videoMaxFrameDuration properties in iOS 7.0. | 168 # videoMaxFrameDuration properties in iOS 7.0. |
145 # See webrtc:3705 for more details. | 169 # See webrtc:3705 for more details. |
146 "-Wno-deprecated-declarations", | 170 "-Wno-deprecated-declarations", |
147 ] | 171 ] |
148 } | 172 } |
149 | 173 |
150 all_dependent_configs = [ ":video_capture_internal_impl_config" ] | 174 all_dependent_configs = [ ":video_capture_internal_impl_config" ] |
151 | 175 |
152 if (is_clang) { | 176 if (is_clang) { |
153 # Suppress warnings from Chrome's Clang plugins. | 177 # Suppress warnings from Chrome's Clang plugins. |
154 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 178 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
155 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 179 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
156 } | 180 } |
157 } | 181 } |
158 | 182 |
159 if (!is_android && rtc_include_tests) { | 183 if (!is_android && rtc_include_tests) { |
160 rtc_test("video_capture_tests") { | 184 rtc_test("video_capture_tests") { |
161 sources = [ | 185 sources = [ |
| 186 "test/video_capture_main_mac.mm", |
162 "test/video_capture_unittest.cc", | 187 "test/video_capture_unittest.cc", |
163 ] | 188 ] |
164 | 189 |
165 cflags = [] | 190 cflags = [] |
166 if (is_linux || is_mac) { | 191 if (is_linux || is_mac) { |
167 cflags += [ "-Wno-write-strings" ] | 192 cflags += [ "-Wno-write-strings" ] |
168 } | 193 } |
169 | 194 |
170 ldflags = [] | 195 ldflags = [] |
171 if (is_linux || is_mac) { | 196 if (is_linux || is_mac) { |
(...skipping 11 matching lines...) Expand all Loading... |
183 } | 208 } |
184 | 209 |
185 deps = [ | 210 deps = [ |
186 ":video_capture_internal_impl", | 211 ":video_capture_internal_impl", |
187 ":video_capture_module", | 212 ":video_capture_module", |
188 "../../system_wrappers:system_wrappers_default", | 213 "../../system_wrappers:system_wrappers_default", |
189 "../../test:video_test_common", | 214 "../../test:video_test_common", |
190 "../utility", | 215 "../utility", |
191 "//testing/gtest", | 216 "//testing/gtest", |
192 ] | 217 ] |
193 deps += [ "//webrtc/test:test_support_main" ] | 218 if (is_mac) { |
| 219 deps += [ "//webrtc/test:test_support_main_threaded_mac" ] |
| 220 } else { |
| 221 deps += [ "//webrtc/test:test_support_main" ] |
| 222 } |
194 | 223 |
195 if (is_clang) { | 224 if (is_clang) { |
196 # Suppress warnings from Chrome's Clang plugins. | 225 # Suppress warnings from Chrome's Clang plugins. |
197 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 226 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
198 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 227 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
199 } | 228 } |
200 } | 229 } |
201 } | 230 } |
202 } | 231 } |
OLD | NEW |