| 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") |
| 10 | 11 |
| 11 # Note this target is missing an implementation for the video capture. | 12 # Note this target is missing an implementation for the video capture. |
| 12 # Targets must link with either 'video_capture' or | 13 # Targets must link with either 'video_capture' or |
| 13 # 'video_capture_internal_impl' depending on whether they want to | 14 # 'video_capture_internal_impl' depending on whether they want to |
| 14 # use the internal capturer. | 15 # use the internal capturer. |
| 15 source_set("video_capture_module") { | 16 source_set("video_capture_module") { |
| 16 sources = [ | 17 sources = [ |
| 17 "device_info_impl.cc", | 18 "device_info_impl.cc", |
| 18 "device_info_impl.h", | 19 "device_info_impl.h", |
| 19 "video_capture.h", | 20 "video_capture.h", |
| 20 "video_capture_config.h", | 21 "video_capture_config.h", |
| 21 "video_capture_defines.h", | 22 "video_capture_defines.h", |
| 22 "video_capture_delay.h", | 23 "video_capture_delay.h", |
| 24 "video_capture_factory.cc", |
| 23 "video_capture_factory.h", | 25 "video_capture_factory.h", |
| 24 "video_capture_factory.cc", | |
| 25 "video_capture_impl.cc", | 26 "video_capture_impl.cc", |
| 26 "video_capture_impl.h", | 27 "video_capture_impl.h", |
| 27 ] | 28 ] |
| 28 | 29 |
| 29 deps = [ | 30 deps = [ |
| 30 "../..:webrtc_common", | 31 "../..:webrtc_common", |
| 31 "../../common_video", | 32 "../../common_video", |
| 32 "../../system_wrappers", | 33 "../../system_wrappers", |
| 33 "../utility", | 34 "../utility", |
| 34 ] | 35 ] |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 157 |
| 157 configs += [ "../..:common_config" ] | 158 configs += [ "../..:common_config" ] |
| 158 public_configs = [ "../..:common_inherited_config" ] | 159 public_configs = [ "../..:common_inherited_config" ] |
| 159 | 160 |
| 160 if (is_clang) { | 161 if (is_clang) { |
| 161 # Suppress warnings from Chrome's Clang plugins. | 162 # Suppress warnings from Chrome's Clang plugins. |
| 162 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 163 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 163 configs -= [ "//build/config/clang:find_bad_constructs" ] | 164 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 164 } | 165 } |
| 165 } | 166 } |
| 167 |
| 168 # TODO(mflodman): Change to "if (!is_android)" when tests are working on Mac |
| 169 if (is_linux && rtc_include_tests) { |
| 170 test("video_capture_tests") { |
| 171 sources = [ |
| 172 "test/video_capture_main_mac.mm", |
| 173 "test/video_capture_unittest.cc", |
| 174 ] |
| 175 |
| 176 cflags = [] |
| 177 if (is_linux || is_mac) { |
| 178 cflags += [ "-Wno-write-strings" ] |
| 179 } |
| 180 |
| 181 ldflags = [] |
| 182 if (is_linux || is_mac) { |
| 183 ldflags += [ |
| 184 "-lpthread", |
| 185 "-lm", |
| 186 ] |
| 187 } |
| 188 if (is_linux) { |
| 189 ldflags += [ |
| 190 "-lrt", |
| 191 "-lXext", |
| 192 "-lX11", |
| 193 ] |
| 194 } |
| 195 |
| 196 deps = [ |
| 197 ":video_capture_internal_impl", |
| 198 ":video_capture_module", |
| 199 "//webrtc/modules/utility", |
| 200 "//webrtc/system_wrappers", |
| 201 "//webrtc/test:video_test_common", |
| 202 ] |
| 203 if (!is_mac) { |
| 204 deps += [ "//webrtc/test:test_support_main" ] |
| 205 } |
| 206 |
| 207 # TODO(mflodman): Add Mac dependencies / xcode_settings. |
| 208 |
| 209 if (is_clang) { |
| 210 # Suppress warnings from Chrome's Clang plugins. |
| 211 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 212 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 213 } |
| 214 } |
| 215 } |
| 166 } | 216 } |
| OLD | NEW |