| 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 import("//testing/test.gni") |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 "mac/qtkit/video_capture_qtkit_info.mm", | 99 "mac/qtkit/video_capture_qtkit_info.mm", |
| 100 "mac/qtkit/video_capture_qtkit_info_objc.h", | 100 "mac/qtkit/video_capture_qtkit_info_objc.h", |
| 101 "mac/qtkit/video_capture_qtkit_info_objc.mm", | 101 "mac/qtkit/video_capture_qtkit_info_objc.mm", |
| 102 "mac/qtkit/video_capture_qtkit_objc.h", | 102 "mac/qtkit/video_capture_qtkit_objc.h", |
| 103 "mac/qtkit/video_capture_qtkit_objc.mm", | 103 "mac/qtkit/video_capture_qtkit_objc.mm", |
| 104 "mac/qtkit/video_capture_qtkit_utility.h", | 104 "mac/qtkit/video_capture_qtkit_utility.h", |
| 105 "mac/video_capture_mac.mm", | 105 "mac/video_capture_mac.mm", |
| 106 ] | 106 ] |
| 107 | 107 |
| 108 libs = [ | 108 libs = [ |
| 109 # For NSAlert in video_capture_qtkit_info_objc.mm. |
| 110 "Cocoa.framework", |
| 111 |
| 112 # For GetGestalt in video_capture_mac.mm. |
| 113 "CoreServices.framework", |
| 109 "CoreVideo.framework", | 114 "CoreVideo.framework", |
| 110 "QTKit.framework", | 115 "QTKit.framework", |
| 111 ] | 116 ] |
| 112 } | 117 } |
| 113 if (is_win) { | 118 if (is_win) { |
| 114 sources = [ | 119 sources = [ |
| 115 "windows/device_info_ds.cc", | 120 "windows/device_info_ds.cc", |
| 116 "windows/device_info_ds.h", | 121 "windows/device_info_ds.h", |
| 117 "windows/device_info_mf.cc", | 122 "windows/device_info_mf.cc", |
| 118 "windows/device_info_mf.h", | 123 "windows/device_info_mf.h", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 configs += [ "../..:common_config" ] | 163 configs += [ "../..:common_config" ] |
| 159 public_configs = [ "../..:common_inherited_config" ] | 164 public_configs = [ "../..:common_inherited_config" ] |
| 160 | 165 |
| 161 if (is_clang) { | 166 if (is_clang) { |
| 162 # Suppress warnings from Chrome's Clang plugins. | 167 # Suppress warnings from Chrome's Clang plugins. |
| 163 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 168 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 164 configs -= [ "//build/config/clang:find_bad_constructs" ] | 169 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 165 } | 170 } |
| 166 } | 171 } |
| 167 | 172 |
| 168 # TODO(mflodman): Change to "if (!is_android)" when tests are working on Mac | 173 if (!is_android && rtc_include_tests) { |
| 169 if (is_linux && rtc_include_tests) { | |
| 170 test("video_capture_tests") { | 174 test("video_capture_tests") { |
| 171 sources = [ | 175 sources = [ |
| 172 "test/video_capture_main_mac.mm", | 176 "test/video_capture_main_mac.mm", |
| 173 "test/video_capture_unittest.cc", | 177 "test/video_capture_unittest.cc", |
| 174 ] | 178 ] |
| 175 | 179 |
| 176 cflags = [] | 180 cflags = [] |
| 177 if (is_linux || is_mac) { | 181 if (is_linux || is_mac) { |
| 178 cflags += [ "-Wno-write-strings" ] | 182 cflags += [ "-Wno-write-strings" ] |
| 179 } | 183 } |
| 180 | 184 |
| 181 ldflags = [] | 185 ldflags = [] |
| 182 if (is_linux || is_mac) { | 186 if (is_linux || is_mac) { |
| 183 ldflags += [ | 187 ldflags += [ |
| 184 "-lpthread", | 188 "-lpthread", |
| 185 "-lm", | 189 "-lm", |
| 186 ] | 190 ] |
| 187 } | 191 } |
| 188 if (is_linux) { | 192 if (is_linux) { |
| 189 ldflags += [ | 193 ldflags += [ |
| 190 "-lrt", | 194 "-lrt", |
| 191 "-lXext", | 195 "-lXext", |
| 192 "-lX11", | 196 "-lX11", |
| 193 ] | 197 ] |
| 194 } | 198 } |
| 195 | 199 |
| 196 deps = [ | 200 deps = [ |
| 197 ":video_capture_internal_impl", | 201 ":video_capture_internal_impl", |
| 198 ":video_capture_module", | 202 ":video_capture_module", |
| 199 "//webrtc/modules/utility", | 203 "../../system_wrappers:system_wrappers_default", |
| 200 "//webrtc/system_wrappers", | 204 "../../test:video_test_common", |
| 201 "//webrtc/test:video_test_common", | 205 "../utility", |
| 206 "//testing/gtest", |
| 202 ] | 207 ] |
| 203 if (!is_mac) { | 208 if (is_mac) { |
| 209 deps += [ "//webrtc/test:test_support_main_threaded_mac" ] |
| 210 } else { |
| 204 deps += [ "//webrtc/test:test_support_main" ] | 211 deps += [ "//webrtc/test:test_support_main" ] |
| 205 } | 212 } |
| 206 | 213 |
| 207 # TODO(mflodman): Add Mac dependencies / xcode_settings. | |
| 208 | |
| 209 if (is_clang) { | 214 if (is_clang) { |
| 210 # Suppress warnings from Chrome's Clang plugins. | 215 # Suppress warnings from Chrome's Clang plugins. |
| 211 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 216 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 212 configs -= [ "//build/config/clang:find_bad_constructs" ] | 217 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 213 } | 218 } |
| 214 } | 219 } |
| 215 } | 220 } |
| 216 } | 221 } |
| OLD | NEW |