blob: a1ab82794e606b66959fee2d63db0a2ef5ae1b33 [file] [log] [blame]
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +00008{
pbos@webrtc.org16e03b72013-10-28 16:32:01 +00009 'conditions': [
10 ['include_tests==1', {
11 'includes': [
henrike@webrtc.org31b75ea2014-10-02 18:43:47 +000012 'libjingle/xmllite/xmllite_tests.gypi',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000013 'libjingle/xmpp/xmpp_tests.gypi',
14 'p2p/p2p_tests.gypi',
henrike@webrtc.org593c3a02014-10-01 16:33:03 +000015 'sound/sound_tests.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000016 'webrtc_tests.gypi',
17 ],
18 }],
19 ],
20 'includes': [
21 'build/common.gypi',
22 'video/webrtc_video.gypi',
23 ],
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000024 'variables': {
25 'webrtc_all_dependencies': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000026 'base/base.gyp:*',
henrike@webrtc.org66a35822014-08-26 22:04:04 +000027 'sound/sound.gyp:*',
pbos@webrtc.org1e92b0a2014-05-15 09:35:06 +000028 'common.gyp:*',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000029 'common_audio/common_audio.gyp:*',
30 'common_video/common_video.gyp:*',
31 'modules/modules.gyp:*',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000032 'p2p/p2p.gyp:*',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000033 'system_wrappers/system_wrappers.gyp:*',
kjellander@webrtc.orgd7e34e12015-01-26 19:17:26 +000034 'tools/tools.gyp:*',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000035 'video_engine/video_engine.gyp:*',
36 'voice_engine/voice_engine.gyp:*',
37 '<(webrtc_vp8_dir)/vp8.gyp:*',
marpan@webrtc.org5b883172014-11-01 06:10:48 +000038 '<(webrtc_vp9_dir)/vp9.gyp:*',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000039 ],
40 },
41 'targets': [
42 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000043 'target_name': 'webrtc_all',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000044 'type': 'none',
45 'dependencies': [
46 '<@(webrtc_all_dependencies)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000047 'webrtc',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000048 ],
49 'conditions': [
50 ['include_tests==1', {
51 'dependencies': [
pbos@webrtc.org724947b2013-12-11 16:26:16 +000052 'common_video/common_video_unittests.gyp:*',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000053 'system_wrappers/system_wrappers_tests.gyp:*',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000054 'test/metrics.gyp:*',
55 'test/test.gyp:*',
stefan@webrtc.orgfaada6e2013-12-18 20:28:25 +000056 'test/webrtc_test_common.gyp:webrtc_test_common_unittests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000057 'webrtc_tests',
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000058 'rtc_unittests',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000059 ],
60 }],
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000061 ],
62 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000063 {
64 # TODO(pbos): This is intended to contain audio parts as well as soon as
65 # VoiceEngine moves to the same new API format.
66 'target_name': 'webrtc',
67 'type': 'static_library',
68 'sources': [
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000069 'call.h',
70 'config.h',
stefan@webrtc.org7e9315b2013-12-04 10:24:26 +000071 'experiments.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000072 'frame_callback.h',
73 'transport.h',
74 'video_receive_stream.h',
75 'video_renderer.h',
76 'video_send_stream.h',
77
78 '<@(webrtc_video_sources)',
79 ],
80 'dependencies': [
pbos@webrtc.org1e92b0a2014-05-15 09:35:06 +000081 'common.gyp:*',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000082 '<@(webrtc_video_dependencies)',
83 ],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000084 'conditions': [
85 # TODO(andresp): Chromium libpeerconnection should link directly with
pbos@webrtc.orga7f77722014-12-15 16:33:16 +000086 # this and no if conditions should be needed on webrtc build files.
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000087 ['build_with_chromium==1', {
pbos@webrtc.orga7f77722014-12-15 16:33:16 +000088 'dependencies': [
89 '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
90 '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
91 ],
92 }],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000093 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000094 },
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000095 ],
96}