henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 1 | # 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.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 8 | { |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 9 | 'variables': { |
| 10 | 'webrtc_all_dependencies': [ |
| 11 | 'base/base.gyp:*', |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 12 | 'common.gyp:*', |
| 13 | 'common_audio/common_audio.gyp:*', |
| 14 | 'common_video/common_video.gyp:*', |
| 15 | 'media/media.gyp:*', |
| 16 | 'modules/modules.gyp:*', |
| 17 | 'p2p/p2p.gyp:*', |
Henrik Kjellander | 4d689ad | 2016-04-01 09:14:52 | [diff] [blame] | 18 | 'pc/pc.gyp:*', |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 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.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 26 | 'conditions': [ |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 27 | ['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 | }], |
tkchin | 9eeb624 | 2016-04-27 08:54:20 | [diff] [blame] | 38 | ['build_with_chromium==0 and' |
| 39 | '(OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7"))', { |
| 40 | # TODO(kjellander): Move this to webrtc_all_dependencies once all of talk/ |
| 41 | # has been moved to webrtc/. It can't be processed by Chromium since the |
| 42 | # reference to buid/java.gypi is using an absolute path (and includes |
| 43 | # entries cannot contain variables). |
| 44 | 'variables': { |
| 45 | 'webrtc_all_dependencies': [ |
| 46 | 'sdk/sdk.gyp:*', |
| 47 | ], |
| 48 | }, |
| 49 | }], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 50 | ['include_tests==1', { |
| 51 | 'includes': [ |
| 52 | 'webrtc_tests.gypi', |
| 53 | ], |
| 54 | }], |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 55 | ['enable_protobuf==1', { |
| 56 | 'targets': [ |
| 57 | { |
| 58 | # This target should only be built if enable_protobuf is defined |
| 59 | 'target_name': 'rtc_event_log_proto', |
| 60 | 'type': 'static_library', |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 61 | 'sources': ['call/rtc_event_log.proto',], |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 62 | 'variables': { |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 63 | 'proto_in_dir': 'call', |
| 64 | 'proto_out_dir': 'webrtc/call', |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 65 | }, |
| 66 | 'includes': ['build/protoc.gypi'], |
| 67 | }, |
| 68 | ], |
| 69 | }], |
terelius | d5c1a0b | 2016-05-13 07:42:59 | [diff] [blame] | 70 | ['enable_protobuf==1', { |
| 71 | 'targets': [ |
| 72 | { |
| 73 | 'target_name': 'rtc_event_log_parser', |
| 74 | 'type': 'static_library', |
| 75 | 'sources': [ |
| 76 | 'call/rtc_event_log_parser.cc', |
| 77 | 'call/rtc_event_log_parser.h', |
| 78 | ], |
| 79 | 'dependencies': [ |
| 80 | 'rtc_event_log_proto', |
| 81 | ], |
| 82 | 'export_dependent_settings': [ |
| 83 | 'rtc_event_log_proto', |
| 84 | ], |
| 85 | }, |
| 86 | ], |
| 87 | }], |
Ivo Creusen | e1aa5b5 | 2015-09-18 13:41:07 | [diff] [blame] | 88 | ['include_tests==1 and enable_protobuf==1', { |
| 89 | 'targets': [ |
| 90 | { |
| 91 | 'target_name': 'rtc_event_log2rtp_dump', |
| 92 | 'type': 'executable', |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 93 | 'sources': ['call/rtc_event_log2rtp_dump.cc',], |
Ivo Creusen | e1aa5b5 | 2015-09-18 13:41:07 | [diff] [blame] | 94 | 'dependencies': [ |
| 95 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
terelius | d5c1a0b | 2016-05-13 07:42:59 | [diff] [blame] | 96 | 'rtc_event_log_parser', |
Ivo Creusen | e1aa5b5 | 2015-09-18 13:41:07 | [diff] [blame] | 97 | 'rtc_event_log_proto', |
| 98 | 'test/test.gyp:rtp_test_utils' |
| 99 | ], |
| 100 | }, |
| 101 | ], |
| 102 | }], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 103 | ], |
| 104 | 'includes': [ |
| 105 | 'build/common.gypi', |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 106 | 'audio/webrtc_audio.gypi', |
| 107 | 'call/webrtc_call.gypi', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 108 | 'video/webrtc_video.gypi', |
| 109 | ], |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 110 | 'targets': [ |
| 111 | { |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 112 | 'target_name': 'webrtc_all', |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 113 | 'type': 'none', |
| 114 | 'dependencies': [ |
| 115 | '<@(webrtc_all_dependencies)', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 116 | 'webrtc', |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 117 | ], |
| 118 | 'conditions': [ |
| 119 | ['include_tests==1', { |
| 120 | 'dependencies': [ |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 121 | 'api/api_tests.gyp:*', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 122 | 'common_video/common_video_unittests.gyp:*', |
Peter Boström | 2ee2439 | 2015-06-22 05:57:16 | [diff] [blame] | 123 | 'rtc_unittests', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 | [diff] [blame] | 124 | 'system_wrappers/system_wrappers_tests.gyp:*', |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 125 | 'test/metrics.gyp:*', |
| 126 | 'test/test.gyp:*', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 127 | 'webrtc_tests', |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 128 | ], |
| 129 | }], |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 130 | ], |
| 131 | }, |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 132 | { |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 133 | 'target_name': 'webrtc', |
| 134 | 'type': 'static_library', |
| 135 | 'sources': [ |
kjellander | 7324eb9 | 2016-02-25 16:36:42 | [diff] [blame] | 136 | 'audio_receive_stream.h', |
Jelena Marusic | cd67022 | 2015-07-16 07:30:09 | [diff] [blame] | 137 | 'audio_send_stream.h', |
solenberg | 566ef24 | 2015-11-06 23:34:49 | [diff] [blame] | 138 | 'audio_state.h', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 139 | 'call.h', |
kjellander | 84f8df7 | 2016-05-18 12:00:50 | [diff] [blame] | 140 | 'config.h', |
kjellander | 7324eb9 | 2016-02-25 16:36:42 | [diff] [blame] | 141 | 'transport.h', |
| 142 | 'video_receive_stream.h', |
kjellander | 7324eb9 | 2016-02-25 16:36:42 | [diff] [blame] | 143 | 'video_send_stream.h', |
| 144 | |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 145 | '<@(webrtc_audio_sources)', |
| 146 | '<@(webrtc_call_sources)', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 147 | '<@(webrtc_video_sources)', |
| 148 | ], |
| 149 | 'dependencies': [ |
pbos@webrtc.org | 1e92b0a | 2014-05-15 09:35:06 | [diff] [blame] | 150 | 'common.gyp:*', |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 151 | '<@(webrtc_audio_dependencies)', |
| 152 | '<@(webrtc_call_dependencies)', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 153 | '<@(webrtc_video_dependencies)', |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 154 | 'rtc_event_log', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 155 | ], |
andresp@webrtc.org | ab071da | 2014-09-18 08:58:15 | [diff] [blame] | 156 | 'conditions': [ |
Henrik Kjellander | 6ffc330 | 2015-10-08 12:40:51 | [diff] [blame] | 157 | # TODO(andresp): Chromium should link directly with this and no if |
| 158 | # conditions should be needed on webrtc build files. |
andresp@webrtc.org | ab071da | 2014-09-18 08:58:15 | [diff] [blame] | 159 | ['build_with_chromium==1', { |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 | [diff] [blame] | 160 | 'dependencies': [ |
kjellander@webrtc.org | f58fe0a | 2015-02-11 07:47:00 | [diff] [blame] | 161 | '<(webrtc_root)/modules/modules.gyp:video_capture', |
pbos@webrtc.org | a7f7772 | 2014-12-15 16:33:16 | [diff] [blame] | 162 | ], |
| 163 | }], |
andresp@webrtc.org | ab071da | 2014-09-18 08:58:15 | [diff] [blame] | 164 | ], |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 | [diff] [blame] | 165 | }, |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 166 | { |
| 167 | 'target_name': 'rtc_event_log', |
| 168 | 'type': 'static_library', |
| 169 | 'sources': [ |
Peter Boström | 5c389d3 | 2015-09-25 11:58:30 | [diff] [blame] | 170 | 'call/rtc_event_log.cc', |
| 171 | 'call/rtc_event_log.h', |
terelius | 4311ba5 | 2016-04-22 19:40:37 | [diff] [blame] | 172 | 'call/rtc_event_log_helper_thread.cc', |
| 173 | 'call/rtc_event_log_helper_thread.h', |
Bjorn Terelius | 3641185 | 2015-07-30 10:45:18 | [diff] [blame] | 174 | ], |
| 175 | 'conditions': [ |
| 176 | # If enable_protobuf is defined, we want to compile the protobuf |
| 177 | # and add rtc_event_log.pb.h and rtc_event_log.pb.cc to the sources. |
| 178 | ['enable_protobuf==1', { |
| 179 | 'dependencies': [ |
| 180 | 'rtc_event_log_proto', |
| 181 | ], |
| 182 | 'defines': [ |
| 183 | 'ENABLE_RTC_EVENT_LOG', |
| 184 | ], |
| 185 | }], |
| 186 | ], |
| 187 | }, |
| 188 | |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 | [diff] [blame] | 189 | ], |
| 190 | } |