blob: be911088d417b2077f91b4d38b5e1b480c764942 [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{
Henrik Kjellander15583c12016-02-10 10:53:12 +01009 'variables': {
10 'webrtc_all_dependencies': [
11 'base/base.gyp:*',
12 'sound/sound.gyp:*',
13 'common.gyp:*',
14 'common_audio/common_audio.gyp:*',
15 'common_video/common_video.gyp:*',
16 'media/media.gyp:*',
17 'modules/modules.gyp:*',
18 'p2p/p2p.gyp:*',
19 'system_wrappers/system_wrappers.gyp:*',
20 'tools/tools.gyp:*',
21 'voice_engine/voice_engine.gyp:*',
22 '<(webrtc_vp8_dir)/vp8.gyp:*',
23 '<(webrtc_vp9_dir)/vp9.gyp:*',
24 ],
25 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000026 'conditions': [
Henrik Kjellander15583c12016-02-10 10:53:12 +010027 ['build_with_chromium==0', {
28 # TODO(kjellander): Move this to webrtc_all_dependencies once all of talk/
29 # has been moved to webrtc/. It can't be processed by Chromium since the
30 # reference to buid/java.gypi is using an absolute path (and includes
31 # entries cannot contain variables).
32 'variables': {
33 'webrtc_all_dependencies': [
34 'api/api.gyp:*',
35 ],
36 },
37 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000038 ['include_tests==1', {
39 'includes': [
henrike@webrtc.org31b75ea2014-10-02 18:43:47 +000040 'libjingle/xmllite/xmllite_tests.gypi',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000041 'libjingle/xmpp/xmpp_tests.gypi',
kjellandera96e2d72016-02-04 23:52:28 -080042 'media/media_tests.gypi',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000043 'p2p/p2p_tests.gypi',
henrike@webrtc.org593c3a02014-10-01 16:33:03 +000044 'sound/sound_tests.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000045 'webrtc_tests.gypi',
46 ],
47 }],
Bjorn Terelius36411852015-07-30 12:45:18 +020048 ['enable_protobuf==1', {
49 'targets': [
50 {
51 # This target should only be built if enable_protobuf is defined
52 'target_name': 'rtc_event_log_proto',
53 'type': 'static_library',
Peter Boström5c389d32015-09-25 13:58:30 +020054 'sources': ['call/rtc_event_log.proto',],
Bjorn Terelius36411852015-07-30 12:45:18 +020055 'variables': {
Peter Boström5c389d32015-09-25 13:58:30 +020056 'proto_in_dir': 'call',
57 'proto_out_dir': 'webrtc/call',
Bjorn Terelius36411852015-07-30 12:45:18 +020058 },
59 'includes': ['build/protoc.gypi'],
60 },
61 ],
62 }],
Ivo Creusene1aa5b52015-09-18 15:41:07 +020063 ['include_tests==1 and enable_protobuf==1', {
64 'targets': [
65 {
66 'target_name': 'rtc_event_log2rtp_dump',
67 'type': 'executable',
Peter Boström5c389d32015-09-25 13:58:30 +020068 'sources': ['call/rtc_event_log2rtp_dump.cc',],
Ivo Creusene1aa5b52015-09-18 15:41:07 +020069 'dependencies': [
70 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
71 'rtc_event_log',
72 'rtc_event_log_proto',
73 'test/test.gyp:rtp_test_utils'
74 ],
75 },
76 ],
77 }],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000078 ],
79 'includes': [
80 'build/common.gypi',
Peter Boström5c389d32015-09-25 13:58:30 +020081 'audio/webrtc_audio.gypi',
82 'call/webrtc_call.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000083 'video/webrtc_video.gypi',
84 ],
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000085 'targets': [
86 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000087 'target_name': 'webrtc_all',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000088 'type': 'none',
89 'dependencies': [
90 '<@(webrtc_all_dependencies)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000091 'webrtc',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000092 ],
93 'conditions': [
94 ['include_tests==1', {
95 'dependencies': [
Henrik Kjellander15583c12016-02-10 10:53:12 +010096 'api/api_tests.gyp:*',
pbos@webrtc.org724947b2013-12-11 16:26:16 +000097 'common_video/common_video_unittests.gyp:*',
Peter Boström2ee24392015-06-22 07:57:16 +020098 'rtc_unittests',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000099 'system_wrappers/system_wrappers_tests.gyp:*',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000100 'test/metrics.gyp:*',
101 'test/test.gyp:*',
Henrik Kjellanderafb6b5e2015-09-16 14:07:33 +0200102 'test/webrtc_test_common.gyp:*',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000103 'webrtc_tests',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000104 ],
105 }],
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000106 ],
107 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000108 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000109 'target_name': 'webrtc',
110 'type': 'static_library',
111 'sources': [
Jelena Marusiccd670222015-07-16 09:30:09 +0200112 'audio_receive_stream.h',
113 'audio_send_stream.h',
solenberg566ef242015-11-06 15:34:49 -0800114 'audio_state.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000115 'call.h',
116 'config.h',
117 'frame_callback.h',
Jelena Marusiccd670222015-07-16 09:30:09 +0200118 'stream.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000119 'transport.h',
120 'video_receive_stream.h',
121 'video_renderer.h',
122 'video_send_stream.h',
123
Peter Boström5c389d32015-09-25 13:58:30 +0200124 '<@(webrtc_audio_sources)',
125 '<@(webrtc_call_sources)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000126 '<@(webrtc_video_sources)',
127 ],
128 'dependencies': [
pbos@webrtc.org1e92b0a2014-05-15 09:35:06 +0000129 'common.gyp:*',
Peter Boström5c389d32015-09-25 13:58:30 +0200130 '<@(webrtc_audio_dependencies)',
131 '<@(webrtc_call_dependencies)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000132 '<@(webrtc_video_dependencies)',
Bjorn Terelius36411852015-07-30 12:45:18 +0200133 'rtc_event_log',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000134 ],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000135 'conditions': [
Henrik Kjellander6ffc3302015-10-08 14:40:51 +0200136 # TODO(andresp): Chromium should link directly with this and no if
137 # conditions should be needed on webrtc build files.
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000138 ['build_with_chromium==1', {
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000139 'dependencies': [
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +0000140 '<(webrtc_root)/modules/modules.gyp:video_capture',
141 '<(webrtc_root)/modules/modules.gyp:video_render',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +0000142 ],
143 }],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +0000144 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000145 },
Bjorn Terelius36411852015-07-30 12:45:18 +0200146 {
147 'target_name': 'rtc_event_log',
148 'type': 'static_library',
149 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +0200150 'call/rtc_event_log.cc',
151 'call/rtc_event_log.h',
Bjorn Terelius36411852015-07-30 12:45:18 +0200152 ],
153 'conditions': [
154 # If enable_protobuf is defined, we want to compile the protobuf
155 # and add rtc_event_log.pb.h and rtc_event_log.pb.cc to the sources.
156 ['enable_protobuf==1', {
157 'dependencies': [
158 'rtc_event_log_proto',
159 ],
160 'defines': [
161 'ENABLE_RTC_EVENT_LOG',
162 ],
163 }],
164 ],
165 },
166
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000167 ],
168}