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