henrike@webrtc.org | 00c3b1e | 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 | 00c3b1e | 2013-07-23 18:15:11 | [diff] [blame] | 8 | { |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 9 | 'includes': [ |
| 10 | 'build/common.gypi', |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 11 | 'audio/webrtc_audio.gypi', |
| 12 | 'call/webrtc_call.gypi', |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 13 | 'video/webrtc_video.gypi', |
| 14 | ], |
henrike@webrtc.org | 00c3b1e | 2013-07-23 18:15:11 | [diff] [blame] | 15 | 'targets': [ |
| 16 | { |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 17 | 'target_name': 'webrtc', |
| 18 | 'type': 'static_library', |
| 19 | 'sources': [ |
kjellander | 52cf08c | 2016-02-25 16:36:42 | [diff] [blame] | 20 | 'audio_receive_stream.h', |
Jelena Marusic | 2fb88e4 | 2015-07-16 07:30:09 | [diff] [blame] | 21 | 'audio_send_stream.h', |
solenberg | b0f22c5 | 2015-11-06 23:34:49 | [diff] [blame] | 22 | 'audio_state.h', |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 23 | 'call.h', |
kjellander | 37cb012 | 2016-05-18 12:00:50 | [diff] [blame] | 24 | 'config.h', |
kjellander | 52cf08c | 2016-02-25 16:36:42 | [diff] [blame] | 25 | 'transport.h', |
| 26 | 'video_receive_stream.h', |
kjellander | 52cf08c | 2016-02-25 16:36:42 | [diff] [blame] | 27 | 'video_send_stream.h', |
| 28 | |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 29 | '<@(webrtc_audio_sources)', |
| 30 | '<@(webrtc_call_sources)', |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 31 | '<@(webrtc_video_sources)', |
| 32 | ], |
| 33 | 'dependencies': [ |
pbos@webrtc.org | 7e68693 | 2014-05-15 09:35:06 | [diff] [blame] | 34 | 'common.gyp:*', |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 35 | '<@(webrtc_audio_dependencies)', |
| 36 | '<@(webrtc_call_dependencies)', |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 37 | '<@(webrtc_video_dependencies)', |
Bjorn Terelius | bd3fce5 | 2015-07-30 10:45:18 | [diff] [blame] | 38 | 'rtc_event_log', |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 39 | ], |
andresp@webrtc.org | 0ab271b | 2014-09-18 08:58:15 | [diff] [blame] | 40 | 'conditions': [ |
Henrik Kjellander | d5c1d3d | 2015-10-08 12:40:51 | [diff] [blame] | 41 | # TODO(andresp): Chromium should link directly with this and no if |
| 42 | # conditions should be needed on webrtc build files. |
andresp@webrtc.org | 0ab271b | 2014-09-18 08:58:15 | [diff] [blame] | 43 | ['build_with_chromium==1', { |
pbos@webrtc.org | e8dbbf4 | 2014-12-15 16:33:16 | [diff] [blame] | 44 | 'dependencies': [ |
kjellander@webrtc.org | 12971d4 | 2015-02-11 07:47:00 | [diff] [blame] | 45 | '<(webrtc_root)/modules/modules.gyp:video_capture', |
pbos@webrtc.org | e8dbbf4 | 2014-12-15 16:33:16 | [diff] [blame] | 46 | ], |
| 47 | }], |
andresp@webrtc.org | 0ab271b | 2014-09-18 08:58:15 | [diff] [blame] | 48 | ], |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 49 | }, |
Bjorn Terelius | bd3fce5 | 2015-07-30 10:45:18 | [diff] [blame] | 50 | { |
| 51 | 'target_name': 'rtc_event_log', |
| 52 | 'type': 'static_library', |
| 53 | 'sources': [ |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 54 | 'call/rtc_event_log.cc', |
| 55 | 'call/rtc_event_log.h', |
terelius | 450784a | 2016-04-22 19:40:37 | [diff] [blame] | 56 | 'call/rtc_event_log_helper_thread.cc', |
| 57 | 'call/rtc_event_log_helper_thread.h', |
Bjorn Terelius | bd3fce5 | 2015-07-30 10:45:18 | [diff] [blame] | 58 | ], |
| 59 | 'conditions': [ |
| 60 | # If enable_protobuf is defined, we want to compile the protobuf |
| 61 | # and add rtc_event_log.pb.h and rtc_event_log.pb.cc to the sources. |
| 62 | ['enable_protobuf==1', { |
| 63 | 'dependencies': [ |
| 64 | 'rtc_event_log_proto', |
| 65 | ], |
| 66 | 'defines': [ |
| 67 | 'ENABLE_RTC_EVENT_LOG', |
| 68 | ], |
| 69 | }], |
| 70 | ], |
| 71 | }, |
kjellander | 827c515 | 2016-06-14 09:09:19 | [diff] [blame] | 72 | ], # targets |
| 73 | 'conditions': [ |
| 74 | ['include_tests==1', { |
| 75 | 'includes': [ |
| 76 | 'webrtc_tests.gypi', |
| 77 | ], |
| 78 | }], |
| 79 | ['enable_protobuf==1', { |
| 80 | 'targets': [ |
| 81 | { |
| 82 | # This target should only be built if enable_protobuf is defined |
| 83 | 'target_name': 'rtc_event_log_proto', |
| 84 | 'type': 'static_library', |
| 85 | 'sources': ['call/rtc_event_log.proto',], |
| 86 | 'variables': { |
| 87 | 'proto_in_dir': 'call', |
| 88 | 'proto_out_dir': 'webrtc/call', |
| 89 | }, |
| 90 | 'includes': ['build/protoc.gypi'], |
| 91 | }, |
| 92 | { |
| 93 | 'target_name': 'rtc_event_log_parser', |
| 94 | 'type': 'static_library', |
| 95 | 'sources': [ |
| 96 | 'call/rtc_event_log_parser.cc', |
| 97 | 'call/rtc_event_log_parser.h', |
| 98 | ], |
| 99 | 'dependencies': [ |
| 100 | 'rtc_event_log_proto', |
| 101 | ], |
| 102 | 'export_dependent_settings': [ |
| 103 | 'rtc_event_log_proto', |
| 104 | ], |
| 105 | }, |
| 106 | ], |
| 107 | }], |
| 108 | ['include_tests==1 and enable_protobuf==1', { |
| 109 | 'targets': [ |
| 110 | { |
| 111 | 'target_name': 'rtc_event_log2rtp_dump', |
| 112 | 'type': 'executable', |
| 113 | 'sources': ['call/rtc_event_log2rtp_dump.cc',], |
| 114 | 'dependencies': [ |
| 115 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 116 | 'rtc_event_log_parser', |
| 117 | 'rtc_event_log_proto', |
| 118 | 'test/test.gyp:rtp_test_utils' |
| 119 | ], |
| 120 | }, |
| 121 | ], |
| 122 | }], |
| 123 | ], # conditions |
henrike@webrtc.org | 00c3b1e | 2013-07-23 18:15:11 | [diff] [blame] | 124 | } |