| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 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 { | 9 { |
| 10 'targets': [ | 10 'targets': [ |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 '-framework CoreVideo', | 155 '-framework CoreVideo', |
| 156 '-framework UIKit', | 156 '-framework UIKit', |
| 157 ], | 157 ], |
| 158 }, | 158 }, |
| 159 }, | 159 }, |
| 160 }], # ios | 160 }], # ios |
| 161 ], # conditions | 161 ], # conditions |
| 162 }, | 162 }, |
| 163 ], | 163 ], |
| 164 }], # build_with_chromium==0 | 164 }], # build_with_chromium==0 |
| 165 ['include_tests==1 and OS!="android"', { | |
| 166 'targets': [ | |
| 167 { | |
| 168 'target_name': 'video_capture_tests', | |
| 169 'type': '<(gtest_target_type)', | |
| 170 'dependencies': [ | |
| 171 'video_capture_module', | |
| 172 'video_capture_module_internal_impl', | |
| 173 'webrtc_utility', | |
| 174 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers'
, | |
| 175 '<(webrtc_root)/test/test.gyp:video_test_common', | |
| 176 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 177 ], | |
| 178 'sources': [ | |
| 179 'test/video_capture_unittest.cc', | |
| 180 'test/video_capture_main_mac.mm', | |
| 181 ], | |
| 182 'conditions': [ | |
| 183 ['OS=="mac" or OS=="linux"', { | |
| 184 'cflags': [ | |
| 185 '-Wno-write-strings', | |
| 186 ], | |
| 187 'ldflags': [ | |
| 188 '-lpthread -lm', | |
| 189 ], | |
| 190 }], | |
| 191 ['OS=="linux"', { | |
| 192 'libraries': [ | |
| 193 '-lrt', | |
| 194 '-lXext', | |
| 195 '-lX11', | |
| 196 ], | |
| 197 }], | |
| 198 ['OS=="mac"', { | |
| 199 'dependencies': [ | |
| 200 # Link with a special main for mac so we can use the webcam. | |
| 201 '<(webrtc_root)/test/test.gyp:test_support_main_threaded_mac', | |
| 202 ], | |
| 203 'xcode_settings': { | |
| 204 # TODO(andrew): CoreAudio and AudioToolbox shouldn't be needed. | |
| 205 'OTHER_LDFLAGS': [ | |
| 206 '-framework Foundation -framework AppKit -framework Cocoa -fra
mework OpenGL -framework CoreVideo -framework CoreAudio -framework AudioToolbox'
, | |
| 207 ], | |
| 208 }, | |
| 209 }], # OS=="mac" | |
| 210 ['OS!="mac"', { | |
| 211 'dependencies': [ | |
| 212 # Otherwise, use the regular main. | |
| 213 '<(webrtc_root)/test/test.gyp:test_support_main', | |
| 214 ], | |
| 215 }], # OS!="mac" | |
| 216 ] # conditions | |
| 217 }, | |
| 218 ], # targets | |
| 219 }], | |
| 220 ], | 165 ], |
| 221 } | 166 } |
| 222 | 167 |
| OLD | NEW |