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 'conditions': [ | |
30 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | |
31 # The >=10.7 above is required to make ARC link cleanly (e.g. as | |
32 # opposed to _compile_ cleanly, which the library under test | |
33 # does just fine on 10.6 too). | |
34 'targets': [ | |
35 { | |
36 'target_name': 'libjingle_peerconnection_objc_test', | |
37 'type': 'executable', | |
38 'includes': [ '../../../webrtc/build/ios/objc_app.gypi' ], | |
39 'dependencies': [ | |
40 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
41 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa
ult', | |
42 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, | |
43 'legacy_objc_api.gyp:libjingle_peerconnection_objc', | |
44 ], | |
45 'sources': [ | |
46 'objctests/RTCPeerConnectionSyncObserver.h', | |
47 'objctests/RTCPeerConnectionSyncObserver.m', | |
48 'objctests/RTCPeerConnectionTest.mm', | |
49 'objctests/RTCSessionDescriptionSyncObserver.h', | |
50 'objctests/RTCSessionDescriptionSyncObserver.m', | |
51 # TODO(fischman): figure out if this works for ios or if it | |
52 # needs a GUI driver. | |
53 'objctests/mac/main.mm', | |
54 ], | |
55 'conditions': [ | |
56 ['OS=="mac"', { | |
57 'xcode_settings': { | |
58 # Need to build against 10.7 framework for full ARC support | |
59 # on OSX. | |
60 'MACOSX_DEPLOYMENT_TARGET' : '10.7', | |
61 # common.gypi enables this for mac but we want this to be | |
62 # disabled like it is for ios. | |
63 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', | |
64 }, | |
65 }], | |
66 ], | |
67 }, # target libjingle_peerconnection_objc_test | |
68 { | |
69 'target_name': 'apprtc_signaling_gunit_test', | |
70 'type': 'executable', | |
71 'includes': [ '../../../webrtc/build/ios/objc_app.gypi' ], | |
72 'dependencies': [ | |
73 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
74 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa
ult', | |
75 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, | |
76 '<(webrtc_root)/webrtc_examples.gyp:apprtc_signaling', | |
77 '<(DEPTH)/third_party/ocmock/ocmock.gyp:ocmock', | |
78 ], | |
79 'sources': [ | |
80 'objctests/mac/main.mm', | |
81 '<(webrtc_root)/examples/objc/AppRTCDemo/tests/ARDAppClientTest.mm', | |
82 ], | |
83 'conditions': [ | |
84 ['OS=="mac"', { | |
85 'xcode_settings': { | |
86 'MACOSX_DEPLOYMENT_TARGET' : '10.8', | |
87 }, | |
88 }], | |
89 ], | |
90 }, # target apprtc_signaling_gunit_test | |
91 ], | |
92 }], | |
93 ], | |
94 } | |
OLD | NEW |