OLD | NEW |
| (Empty) |
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. | |
8 { | |
9 'includes': [ | |
10 'build/common.gypi', | |
11 'audio/webrtc_audio.gypi', | |
12 'call/webrtc_call.gypi', | |
13 'video/webrtc_video.gypi', | |
14 ], | |
15 'targets': [ | |
16 { | |
17 'target_name': 'webrtc', | |
18 'type': 'static_library', | |
19 'sources': [ | |
20 'call.h', | |
21 'config.h', | |
22 'transport.h', | |
23 'video_receive_stream.h', | |
24 'video_send_stream.h', | |
25 | |
26 '<@(webrtc_audio_sources)', | |
27 '<@(webrtc_call_sources)', | |
28 '<@(webrtc_video_sources)', | |
29 ], | |
30 'dependencies': [ | |
31 'common.gyp:*', | |
32 '<@(webrtc_audio_dependencies)', | |
33 '<@(webrtc_call_dependencies)', | |
34 '<@(webrtc_video_dependencies)', | |
35 'rtc_event_log_impl', | |
36 ], | |
37 'conditions': [ | |
38 # TODO(andresp): Chromium should link directly with this and no if | |
39 # conditions should be needed on webrtc build files. | |
40 ['build_with_chromium==1', { | |
41 'dependencies': [ | |
42 '<(webrtc_root)/modules/modules.gyp:video_capture', | |
43 ], | |
44 }], | |
45 ], | |
46 }, | |
47 { | |
48 'target_name': 'rtc_event_log_api', | |
49 'type': 'static_library', | |
50 'sources': [ | |
51 'logging/rtc_event_log/rtc_event_log.h', | |
52 ], | |
53 }, | |
54 { | |
55 'target_name': 'rtc_event_log_impl', | |
56 'type': 'static_library', | |
57 'sources': [ | |
58 'logging/rtc_event_log/ringbuffer.h', | |
59 'logging/rtc_event_log/rtc_event_log.cc', | |
60 'logging/rtc_event_log/rtc_event_log_helper_thread.cc', | |
61 'logging/rtc_event_log/rtc_event_log_helper_thread.h', | |
62 ], | |
63 'conditions': [ | |
64 # If enable_protobuf is defined, we want to compile the protobuf | |
65 # and add rtc_event_log.pb.h and rtc_event_log.pb.cc to the sources. | |
66 ['enable_protobuf==1', { | |
67 'dependencies': [ | |
68 'rtc_event_log_api', | |
69 'rtc_event_log_proto', | |
70 '<(webrtc_root)/api/api.gyp:call_api', | |
71 ], | |
72 'defines': [ | |
73 'ENABLE_RTC_EVENT_LOG', | |
74 ], | |
75 }], | |
76 ], | |
77 }, | |
78 ], # targets | |
79 'conditions': [ | |
80 ['include_tests==1', { | |
81 'includes': [ | |
82 'webrtc_tests.gypi', | |
83 ], | |
84 }], | |
85 ['enable_protobuf==1', { | |
86 'targets': [ | |
87 { | |
88 # This target should only be built if enable_protobuf is defined | |
89 'target_name': 'rtc_event_log_proto', | |
90 'type': 'static_library', | |
91 'sources': ['logging/rtc_event_log/rtc_event_log.proto',], | |
92 'variables': { | |
93 'proto_in_dir': 'logging/rtc_event_log', | |
94 'proto_out_dir': 'webrtc/logging/rtc_event_log', | |
95 }, | |
96 'includes': ['build/protoc.gypi'], | |
97 }, | |
98 { | |
99 'target_name': 'rtc_event_log_parser', | |
100 'type': 'static_library', | |
101 'sources': [ | |
102 'logging/rtc_event_log/rtc_event_log_parser.cc', | |
103 'logging/rtc_event_log/rtc_event_log_parser.h', | |
104 ], | |
105 'dependencies': [ | |
106 'rtc_event_log_proto', | |
107 ], | |
108 'export_dependent_settings': [ | |
109 'rtc_event_log_proto', | |
110 ], | |
111 }, | |
112 ], | |
113 }], | |
114 ['include_tests==1 and enable_protobuf==1', { | |
115 'targets': [ | |
116 { | |
117 'target_name': 'rtc_event_log2rtp_dump', | |
118 'type': 'executable', | |
119 'sources': ['logging/rtc_event_log2rtp_dump.cc',], | |
120 'dependencies': [ | |
121 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
122 'rtc_event_log_parser', | |
123 'rtc_event_log_proto', | |
124 'test/test.gyp:rtp_test_utils' | |
125 ], | |
126 }, | |
127 ], | |
128 }], | |
129 ], # conditions | |
130 } | |
OLD | NEW |