OLD | NEW |
1 # | 1 # |
2 # libjingle | 2 # libjingle |
3 # Copyright 2012 Google Inc. | 3 # Copyright 2012 Google Inc. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are met: | 6 # modification, are permitted provided that the following conditions are met: |
7 # | 7 # |
8 # 1. Redistributions of source code must retain the above copyright notice, | 8 # 1. Redistributions of source code must retain the above copyright notice, |
9 # this list of conditions and the following disclaimer. | 9 # this list of conditions and the following disclaimer. |
10 # 2. Redistributions in binary form must reproduce the above copyright notice, | 10 # 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 'media/sctp/sctpdataengine_unittest.cc', | 145 'media/sctp/sctpdataengine_unittest.cc', |
146 ], | 146 ], |
147 }], | 147 }], |
148 ], | 148 ], |
149 }, # target libjingle_media_unittest | 149 }, # target libjingle_media_unittest |
150 { | 150 { |
151 'target_name': 'libjingle_p2p_unittest', | 151 'target_name': 'libjingle_p2p_unittest', |
152 'type': 'executable', | 152 'type': 'executable', |
153 'dependencies': [ | 153 'dependencies': [ |
154 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | 154 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
| 155 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', |
155 'libjingle.gyp:libjingle', | 156 'libjingle.gyp:libjingle', |
156 'libjingle.gyp:libjingle_peerconnection', | |
157 'libjingle.gyp:libjingle_p2p', | 157 'libjingle.gyp:libjingle_p2p', |
158 'libjingle_unittest_main', | 158 'libjingle_unittest_main', |
159 ], | 159 ], |
160 'include_dirs': [ | 160 'include_dirs': [ |
161 '<(DEPTH)/third_party/libsrtp/srtp', | 161 '<(DEPTH)/third_party/libsrtp/srtp', |
162 ], | 162 ], |
163 'sources': [ | 163 'sources': [ |
164 'session/media/bundlefilter_unittest.cc', | 164 'session/media/bundlefilter_unittest.cc', |
165 'session/media/channel_unittest.cc', | 165 'session/media/channel_unittest.cc', |
166 'session/media/channelmanager_unittest.cc', | 166 'session/media/channelmanager_unittest.cc', |
(...skipping 12 matching lines...) Expand all Loading... |
179 'msvs_settings': { | 179 'msvs_settings': { |
180 'VCLinkerTool': { | 180 'VCLinkerTool': { |
181 'AdditionalDependencies': [ | 181 'AdditionalDependencies': [ |
182 'strmiids.lib', | 182 'strmiids.lib', |
183 ], | 183 ], |
184 }, | 184 }, |
185 }, | 185 }, |
186 }], | 186 }], |
187 ], | 187 ], |
188 }, # target libjingle_p2p_unittest | 188 }, # target libjingle_p2p_unittest |
189 { | |
190 'target_name': 'peerconnection_unittests', | |
191 'type': '<(gtest_target_type)', | |
192 'dependencies': [ | |
193 '<(DEPTH)/testing/gmock.gyp:gmock', | |
194 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
195 '<(webrtc_root)/common.gyp:webrtc_common', | |
196 'libjingle.gyp:libjingle', | |
197 'libjingle.gyp:libjingle_p2p', | |
198 'libjingle.gyp:libjingle_peerconnection', | |
199 'libjingle_unittest_main', | |
200 ], | |
201 'direct_dependent_settings': { | |
202 'include_dirs': [ | |
203 '<(DEPTH)/testing/gmock/include', | |
204 ], | |
205 }, | |
206 'sources': [ | |
207 'app/webrtc/datachannel_unittest.cc', | |
208 'app/webrtc/dtlsidentitystore_unittest.cc', | |
209 'app/webrtc/dtmfsender_unittest.cc', | |
210 'app/webrtc/fakemetricsobserver.cc', | |
211 'app/webrtc/fakemetricsobserver.h', | |
212 'app/webrtc/jsepsessiondescription_unittest.cc', | |
213 'app/webrtc/localaudiosource_unittest.cc', | |
214 'app/webrtc/mediastream_unittest.cc', | |
215 'app/webrtc/peerconnection_unittest.cc', | |
216 'app/webrtc/peerconnectionendtoend_unittest.cc', | |
217 'app/webrtc/peerconnectionfactory_unittest.cc', | |
218 'app/webrtc/peerconnectioninterface_unittest.cc', | |
219 # 'app/webrtc/peerconnectionproxy_unittest.cc', | |
220 'app/webrtc/remotevideocapturer_unittest.cc', | |
221 'app/webrtc/rtpsenderreceiver_unittest.cc', | |
222 'app/webrtc/statscollector_unittest.cc', | |
223 'app/webrtc/test/fakeaudiocapturemodule.cc', | |
224 'app/webrtc/test/fakeaudiocapturemodule.h', | |
225 'app/webrtc/test/fakeaudiocapturemodule_unittest.cc', | |
226 'app/webrtc/test/fakeconstraints.h', | |
227 'app/webrtc/test/fakedatachannelprovider.h', | |
228 'app/webrtc/test/fakedtlsidentitystore.h', | |
229 'app/webrtc/test/fakeperiodicvideocapturer.h', | |
230 'app/webrtc/test/fakevideotrackrenderer.h', | |
231 'app/webrtc/test/mockpeerconnectionobservers.h', | |
232 'app/webrtc/test/peerconnectiontestwrapper.h', | |
233 'app/webrtc/test/peerconnectiontestwrapper.cc', | |
234 'app/webrtc/test/testsdpstrings.h', | |
235 'app/webrtc/videosource_unittest.cc', | |
236 'app/webrtc/videotrack_unittest.cc', | |
237 'app/webrtc/webrtcsdp_unittest.cc', | |
238 'app/webrtc/webrtcsession_unittest.cc', | |
239 ], | |
240 'conditions': [ | |
241 ['OS=="android"', { | |
242 'sources': [ | |
243 'app/webrtc/test/androidtestinitializer.cc', | |
244 'app/webrtc/test/androidtestinitializer.h', | |
245 ], | |
246 'dependencies': [ | |
247 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | |
248 'libjingle.gyp:libjingle_peerconnection_jni', | |
249 ], | |
250 }], | |
251 ['OS=="win" and clang==1', { | |
252 'msvs_settings': { | |
253 'VCCLCompilerTool': { | |
254 'AdditionalOptions': [ | |
255 # Disable warnings failing when compiling with Clang on Windows. | |
256 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | |
257 '-Wno-unused-function', | |
258 ], | |
259 }, | |
260 }, | |
261 }], | |
262 ], | |
263 }, # target peerconnection_unittests | |
264 ], | 189 ], |
265 'conditions': [ | 190 'conditions': [ |
266 ['OS=="linux"', { | |
267 'variables': { | |
268 'junit_jar': '<(DEPTH)/third_party/junit-jar/junit-4.11.jar', | |
269 }, | |
270 'targets': [ | |
271 { | |
272 'target_name': 'libjingle_peerconnection_test_jar', | |
273 'type': 'none', | |
274 'dependencies': [ | |
275 'libjingle.gyp:libjingle_peerconnection_jar', | |
276 ], | |
277 'actions': [ | |
278 { | |
279 'variables': { | |
280 'java_src_dir': 'app/webrtc/javatests/src', | |
281 'java_files': [ | |
282 'app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.
java', | |
283 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTestJava.ja
va', | |
284 ], | |
285 }, | |
286 'action_name': 'create_jar', | |
287 'inputs': [ | |
288 'build/build_jar.sh', | |
289 '<@(java_files)', | |
290 '<(PRODUCT_DIR)/libjingle_peerconnection.jar', | |
291 '<(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so', | |
292 '<(junit_jar)', | |
293 ], | |
294 'outputs': [ | |
295 '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar', | |
296 ], | |
297 'action': [ | |
298 'build/build_jar.sh', '<(java_home)', '<@(_outputs)', | |
299 '<(INTERMEDIATE_DIR)', | |
300 '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(j
unit_jar)', | |
301 '<@(java_files)' | |
302 ], | |
303 }, | |
304 ], | |
305 }, | |
306 { | |
307 'target_name': 'libjingle_peerconnection_java_unittest', | |
308 'type': 'none', | |
309 'actions': [ | |
310 { | |
311 'action_name': 'copy libjingle_peerconnection_java_unittest', | |
312 'inputs': [ | |
313 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh'
, | |
314 '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar', | |
315 '<(junit_jar)', | |
316 ], | |
317 'outputs': [ | |
318 '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest', | |
319 ], | |
320 'action': [ | |
321 'bash', '-c', | |
322 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest &&
' | |
323 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" ' | |
324 '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.s
h ' | |
325 '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && ' | |
326 'cp <(junit_jar) <(PRODUCT_DIR) && ' | |
327 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest
' | |
328 ], | |
329 }, | |
330 ], | |
331 }, | |
332 ], | |
333 }], | |
334 ['OS=="android"', { | |
335 'targets': [ | |
336 { | |
337 'target_name': 'libjingle_peerconnection_android_unittest', | |
338 'type': 'none', | |
339 'dependencies': [ | |
340 'libjingle.gyp:libjingle_peerconnection_java', | |
341 ], | |
342 'variables': { | |
343 'apk_name': 'libjingle_peerconnection_android_unittest', | |
344 'java_in_dir': 'app/webrtc/androidtests', | |
345 'resource_dir': 'app/webrtc/androidtests/res', | |
346 'additional_src_dirs': ['app/webrtc/java/testcommon'], | |
347 'native_lib_target': 'libjingle_peerconnection_so', | |
348 'is_test_apk': 1, | |
349 }, | |
350 'includes': [ '../build/java_apk.gypi' ], | |
351 }, | |
352 ], # targets | |
353 }], # OS=="android" | |
354 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | 191 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
355 # The >=10.7 above is required to make ARC link cleanly (e.g. as | 192 # The >=10.7 above is required to make ARC link cleanly (e.g. as |
356 # opposed to _compile_ cleanly, which the library under test | 193 # opposed to _compile_ cleanly, which the library under test |
357 # does just fine on 10.6 too). | 194 # does just fine on 10.6 too). |
358 'targets': [ | 195 'targets': [ |
359 { | 196 { |
360 'target_name': 'libjingle_peerconnection_objc_test', | 197 'target_name': 'libjingle_peerconnection_objc_test', |
361 'type': 'executable', | 198 'type': 'executable', |
362 'includes': [ 'build/objc_app.gypi' ], | 199 'includes': [ 'build/objc_app.gypi' ], |
363 'dependencies': [ | 200 'dependencies': [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 'conditions': [ | 242 'conditions': [ |
406 ['OS=="mac"', { | 243 ['OS=="mac"', { |
407 'xcode_settings': { | 244 'xcode_settings': { |
408 'MACOSX_DEPLOYMENT_TARGET' : '10.8', | 245 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
409 }, | 246 }, |
410 }], | 247 }], |
411 ], | 248 ], |
412 }, # target apprtc_signaling_gunit_test | 249 }, # target apprtc_signaling_gunit_test |
413 ], | 250 ], |
414 }], | 251 }], |
415 ['OS=="android"', { | |
416 'targets': [ | |
417 { | |
418 'target_name': 'peerconnection_unittests_apk_target', | |
419 'type': 'none', | |
420 'dependencies': [ | |
421 '<(DEPTH)/webrtc/build/apk_tests.gyp:peerconnection_unittests_apk', | |
422 ], | |
423 }, | |
424 ], | |
425 }], | |
426 ['test_isolation_mode != "noop"', { | 252 ['test_isolation_mode != "noop"', { |
427 'targets': [ | 253 'targets': [ |
428 { | 254 { |
429 'target_name': 'libjingle_media_unittest_run', | 255 'target_name': 'libjingle_media_unittest_run', |
430 'type': 'none', | 256 'type': 'none', |
431 'dependencies': [ | 257 'dependencies': [ |
432 'libjingle_media_unittest', | 258 'libjingle_media_unittest', |
433 ], | 259 ], |
434 'includes': [ | 260 'includes': [ |
435 'build/isolate.gypi', | 261 'build/isolate.gypi', |
436 ], | 262 ], |
437 'sources': [ | 263 'sources': [ |
438 'libjingle_media_unittest.isolate', | 264 'libjingle_media_unittest.isolate', |
439 ], | 265 ], |
440 }, | 266 }, |
441 { | 267 { |
442 'target_name': 'libjingle_p2p_unittest_run', | 268 'target_name': 'libjingle_p2p_unittest_run', |
443 'type': 'none', | 269 'type': 'none', |
444 'dependencies': [ | 270 'dependencies': [ |
445 'libjingle_p2p_unittest', | 271 'libjingle_p2p_unittest', |
446 ], | 272 ], |
447 'includes': [ | 273 'includes': [ |
448 'build/isolate.gypi', | 274 'build/isolate.gypi', |
449 ], | 275 ], |
450 'sources': [ | 276 'sources': [ |
451 'libjingle_p2p_unittest.isolate', | 277 'libjingle_p2p_unittest.isolate', |
452 ], | 278 ], |
453 }, | 279 }, |
454 { | |
455 'target_name': 'peerconnection_unittests_run', | |
456 'type': 'none', | |
457 'dependencies': [ | |
458 'peerconnection_unittests', | |
459 ], | |
460 'includes': [ | |
461 'build/isolate.gypi', | |
462 ], | |
463 'sources': [ | |
464 'peerconnection_unittests.isolate', | |
465 ], | |
466 }, | |
467 ], | 280 ], |
468 }], | 281 }], |
469 ], | 282 ], |
470 } | 283 } |
OLD | NEW |