blob: 1d8b682c394e02885c61f4fc2cd57de6374f0b92 [file] [log] [blame]
kjellander@webrtc.org9b8df252016-02-12 06:47:59 +01001#
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': [ '../../build/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_default',
42 'legacy_objc_api.gyp:libjingle_peerconnection_objc',
43 ],
44 'sources': [
45 'objctests/RTCPeerConnectionSyncObserver.h',
46 'objctests/RTCPeerConnectionSyncObserver.m',
47 'objctests/RTCPeerConnectionTest.mm',
48 'objctests/RTCSessionDescriptionSyncObserver.h',
49 'objctests/RTCSessionDescriptionSyncObserver.m',
50 # TODO(fischman): figure out if this works for ios or if it
51 # needs a GUI driver.
52 'objctests/mac/main.mm',
53 ],
54 'conditions': [
55 ['OS=="mac"', {
56 'xcode_settings': {
57 # Need to build against 10.7 framework for full ARC support
58 # on OSX.
59 'MACOSX_DEPLOYMENT_TARGET' : '10.7',
60 # common.gypi enables this for mac but we want this to be
61 # disabled like it is for ios.
62 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
63 },
64 }],
65 ],
66 }, # target libjingle_peerconnection_objc_test
67 {
68 'target_name': 'apprtc_signaling_gunit_test',
69 'type': 'executable',
70 'includes': [ '../../build/objc_app.gypi' ],
71 'dependencies': [
72 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
73 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default',
74 '<(webrtc_root)/webrtc_examples.gyp:apprtc_signaling',
75 '<(DEPTH)/third_party/ocmock/ocmock.gyp:ocmock',
76 ],
77 'sources': [
78 'objctests/mac/main.mm',
79 '<(webrtc_root)/examples/objc/AppRTCDemo/tests/ARDAppClientTest.mm',
80 ],
81 'conditions': [
82 ['OS=="mac"', {
83 'xcode_settings': {
84 'MACOSX_DEPLOYMENT_TARGET' : '10.8',
85 },
86 }],
87 ],
88 }, # target apprtc_signaling_gunit_test
89 ],
90 }],
91 ],
92}