OLD | NEW |
| (Empty) |
1 # | |
2 # libjingle | |
3 # Copyright 2012 Google Inc. | |
4 # | |
5 # Redistribution and use in source and binary forms, with or without | |
6 # modification, are permitted provided that the following conditions are met: | |
7 # | |
8 # 1. Redistributions of source code must retain the above copyright notice, | |
9 # this list of conditions and the following disclaimer. | |
10 # 2. Redistributions in binary form must reproduce the above copyright notice, | |
11 # this list of conditions and the following disclaimer in the documentation | |
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 | |
14 # derived from this software without specific prior written permission. | |
15 # | |
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 | |
18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
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, | |
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 | |
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
26 | |
27 { | |
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': [ | |
70 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | |
71 # The >=10.7 above is required to make ARC link cleanly (e.g. as | |
72 # opposed to _compile_ cleanly, which the library under test | |
73 # does just fine on 10.6 too). | |
74 'targets': [ | |
75 { | |
76 'target_name': 'libjingle_peerconnection_objc_test', | |
77 'type': 'executable', | |
78 'includes': [ 'build/objc_app.gypi' ], | |
79 'dependencies': [ | |
80 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
81 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa
ult', | |
82 'libjingle.gyp:libjingle_peerconnection_objc', | |
83 ], | |
84 'sources': [ | |
85 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.h', | |
86 'app/webrtc/objctests/RTCPeerConnectionSyncObserver.m', | |
87 'app/webrtc/objctests/RTCPeerConnectionTest.mm', | |
88 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.h', | |
89 'app/webrtc/objctests/RTCSessionDescriptionSyncObserver.m', | |
90 # TODO(fischman): figure out if this works for ios or if it | |
91 # needs a GUI driver. | |
92 'app/webrtc/objctests/mac/main.mm', | |
93 ], | |
94 'conditions': [ | |
95 ['OS=="mac"', { | |
96 'xcode_settings': { | |
97 # Need to build against 10.7 framework for full ARC support | |
98 # on OSX. | |
99 'MACOSX_DEPLOYMENT_TARGET' : '10.7', | |
100 # common.gypi enables this for mac but we want this to be | |
101 # disabled like it is for ios. | |
102 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', | |
103 }, | |
104 }], | |
105 ], | |
106 }, # target libjingle_peerconnection_objc_test | |
107 { | |
108 'target_name': 'apprtc_signaling_gunit_test', | |
109 'type': 'executable', | |
110 'includes': [ 'build/objc_app.gypi' ], | |
111 'dependencies': [ | |
112 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
113 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa
ult', | |
114 '<(webrtc_root)/webrtc_examples.gyp:apprtc_signaling', | |
115 '<(DEPTH)/third_party/ocmock/ocmock.gyp:ocmock', | |
116 ], | |
117 'sources': [ | |
118 'app/webrtc/objctests/mac/main.mm', | |
119 '<(webrtc_root)/examples/objc/AppRTCDemo/tests/ARDAppClientTest.mm', | |
120 ], | |
121 'conditions': [ | |
122 ['OS=="mac"', { | |
123 'xcode_settings': { | |
124 'MACOSX_DEPLOYMENT_TARGET' : '10.8', | |
125 }, | |
126 }], | |
127 ], | |
128 }, # target apprtc_signaling_gunit_test | |
129 ], | |
130 }], | |
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 ], | |
149 } | |
OLD | NEW |