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, |
11 # this list of conditions and the following disclaimer in the documentation | 11 # this list of conditions and the following disclaimer in the documentation |
12 # and/or other materials provided with the distribution. | 12 # and/or other materials provided with the distribution. |
13 # 3. The name of the author may not be used to endorse or promote products | 13 # 3. The name of the author may not be used to endorse or promote products |
14 # derived from this software without specific prior written permission. | 14 # derived from this software without specific prior written permission. |
15 # | 15 # |
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | 16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | 17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | 18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | 26 |
27 { | 27 { |
28 'includes': ['build/common.gypi'], | 28 'includes': ['build/common.gypi'], |
29 'targets': [ | |
30 { | |
31 'target_name': 'libjingle_p2p_unittest', | |
32 'type': 'executable', | |
33 'dependencies': [ | |
34 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', | |
35 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
36 '<(webrtc_root)/webrtc.gyp:rtc_unittest_main', | |
37 'libjingle.gyp:libjingle_p2p', | |
38 ], | |
39 'include_dirs': [ | |
40 '<(DEPTH)/third_party/libsrtp/srtp', | |
41 ], | |
42 'sources': [ | |
43 'session/media/bundlefilter_unittest.cc', | |
44 'session/media/channel_unittest.cc', | |
45 'session/media/channelmanager_unittest.cc', | |
46 'session/media/currentspeakermonitor_unittest.cc', | |
47 'session/media/mediasession_unittest.cc', | |
48 'session/media/rtcpmuxfilter_unittest.cc', | |
49 'session/media/srtpfilter_unittest.cc', | |
50 ], | |
51 'conditions': [ | |
52 ['build_libsrtp==1', { | |
53 'dependencies': [ | |
54 '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', | |
55 ], | |
56 }], | |
57 ['OS=="win"', { | |
58 'msvs_settings': { | |
59 'VCLinkerTool': { | |
60 'AdditionalDependencies': [ | |
61 'strmiids.lib', | |
62 ], | |
63 }, | |
64 }, | |
65 }], | |
66 ], | |
67 }, # target libjingle_p2p_unittest | |
68 ], | |
69 'conditions': [ | 29 'conditions': [ |
70 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | 30 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
71 # The >=10.7 above is required to make ARC link cleanly (e.g. as | 31 # The >=10.7 above is required to make ARC link cleanly (e.g. as |
72 # opposed to _compile_ cleanly, which the library under test | 32 # opposed to _compile_ cleanly, which the library under test |
73 # does just fine on 10.6 too). | 33 # does just fine on 10.6 too). |
74 'targets': [ | 34 'targets': [ |
75 { | 35 { |
76 'target_name': 'libjingle_peerconnection_objc_test', | 36 'target_name': 'libjingle_peerconnection_objc_test', |
77 'type': 'executable', | 37 'type': 'executable', |
78 'includes': [ 'build/objc_app.gypi' ], | 38 'includes': [ 'build/objc_app.gypi' ], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 'conditions': [ | 81 'conditions': [ |
122 ['OS=="mac"', { | 82 ['OS=="mac"', { |
123 'xcode_settings': { | 83 'xcode_settings': { |
124 'MACOSX_DEPLOYMENT_TARGET' : '10.8', | 84 'MACOSX_DEPLOYMENT_TARGET' : '10.8', |
125 }, | 85 }, |
126 }], | 86 }], |
127 ], | 87 ], |
128 }, # target apprtc_signaling_gunit_test | 88 }, # target apprtc_signaling_gunit_test |
129 ], | 89 ], |
130 }], | 90 }], |
131 ['test_isolation_mode != "noop"', { | |
132 'targets': [ | |
133 { | |
134 'target_name': 'libjingle_p2p_unittest_run', | |
135 'type': 'none', | |
136 'dependencies': [ | |
137 'libjingle_p2p_unittest', | |
138 ], | |
139 'includes': [ | |
140 'build/isolate.gypi', | |
141 ], | |
142 'sources': [ | |
143 'libjingle_p2p_unittest.isolate', | |
144 ], | |
145 }, | |
146 ], | |
147 }], | |
148 ], | 91 ], |
149 } | 92 } |
OLD | NEW |