blob: 8a56fe765c44c196c025fc971560039653e67bec [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 'includes': [
10 'build/common.gypi',
Peter Boström5c389d32015-09-25 13:58:30 +020011 'audio/webrtc_audio.gypi',
12 'call/webrtc_call.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000013 'video/webrtc_video.gypi',
14 ],
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000015 'targets': [
16 {
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000017 'target_name': 'webrtc',
18 'type': 'static_library',
19 'sources': [
kjellander7324eb92016-02-25 08:36:42 -080020 'audio_receive_stream.h',
Jelena Marusiccd670222015-07-16 09:30:09 +020021 'audio_send_stream.h',
solenberg566ef242015-11-06 15:34:49 -080022 'audio_state.h',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000023 'call.h',
kjellander84f8df72016-05-18 05:00:50 -070024 'config.h',
kjellander7324eb92016-02-25 08:36:42 -080025 'transport.h',
26 'video_receive_stream.h',
kjellander7324eb92016-02-25 08:36:42 -080027 'video_send_stream.h',
28
Peter Boström5c389d32015-09-25 13:58:30 +020029 '<@(webrtc_audio_sources)',
30 '<@(webrtc_call_sources)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000031 '<@(webrtc_video_sources)',
32 ],
33 'dependencies': [
pbos@webrtc.org1e92b0a2014-05-15 09:35:06 +000034 'common.gyp:*',
Peter Boström5c389d32015-09-25 13:58:30 +020035 '<@(webrtc_audio_dependencies)',
36 '<@(webrtc_call_dependencies)',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000037 '<@(webrtc_video_dependencies)',
Bjorn Terelius36411852015-07-30 12:45:18 +020038 'rtc_event_log',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000039 ],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000040 'conditions': [
Henrik Kjellander6ffc3302015-10-08 14:40:51 +020041 # TODO(andresp): Chromium should link directly with this and no if
42 # conditions should be needed on webrtc build files.
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000043 ['build_with_chromium==1', {
pbos@webrtc.orga7f77722014-12-15 16:33:16 +000044 'dependencies': [
kjellander@webrtc.orgf58fe0a2015-02-11 07:47:00 +000045 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.orga7f77722014-12-15 16:33:16 +000046 ],
47 }],
andresp@webrtc.orgab071da2014-09-18 08:58:15 +000048 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000049 },
Bjorn Terelius36411852015-07-30 12:45:18 +020050 {
51 'target_name': 'rtc_event_log',
52 'type': 'static_library',
53 'sources': [
Peter Boström5c389d32015-09-25 13:58:30 +020054 'call/rtc_event_log.cc',
55 'call/rtc_event_log.h',
terelius4311ba52016-04-22 12:40:37 -070056 'call/rtc_event_log_helper_thread.cc',
57 'call/rtc_event_log_helper_thread.h',
Bjorn Terelius36411852015-07-30 12:45:18 +020058 ],
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 },
kjellander86600242016-06-14 02:09:19 -070072 ], # 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.org8d27a1c2013-07-23 18:15:11 +0000124}