OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
10 import("../webrtc.gni") | 10 import("../webrtc.gni") |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 config("rtc_media_warnings_config") { | 26 config("rtc_media_warnings_config") { |
27 # GN orders flags on a target before flags from configs. The default config | 27 # GN orders flags on a target before flags from configs. The default config |
28 # adds these flags so to cancel them out they need to come from a config and | 28 # adds these flags so to cancel them out they need to come from a config and |
29 # cannot be on the target directly. | 29 # cannot be on the target directly. |
30 if (!is_win) { | 30 if (!is_win) { |
31 cflags = [ "-Wno-deprecated-declarations" ] | 31 cflags = [ "-Wno-deprecated-declarations" ] |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 rtc_static_library("rtc_media_base") { | 35 rtc_source_set("rtc_media_base_common") { |
36 # TODO(kjellander): Remove (bugs.webrtc.org/6828) | 36 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
37 # Enabling GN check triggers cyclic dependency error: | 37 # Enabling GN check triggers cyclic dependency error: |
38 # //webrtc/media:rtc_media_base -> | 38 # //webrtc/media:rtc_media_base -> |
39 # //webrtc/pc:rtc_pc -> | 39 # //webrtc/pc:rtc_pc -> |
40 # //webrtc/media:media -> | 40 # //webrtc/media:media -> |
41 # //webrtc/media:rtc_media_base | 41 # //webrtc/media:rtc_media_base |
42 check_includes = false | 42 check_includes = false |
43 defines = [] | |
44 libs = [] | |
45 deps = [] | 43 deps = [] |
46 sources = [ | 44 sources = [ |
47 "base/adaptedvideotracksource.cc", | 45 "base/adaptedvideotracksource.cc", |
48 "base/adaptedvideotracksource.h", | 46 "base/adaptedvideotracksource.h", |
49 "base/audiosource.h", | 47 "base/audiosource.h", |
50 "base/codec.cc", | |
51 "base/codec.h", | |
52 "base/cryptoparams.h", | 48 "base/cryptoparams.h", |
53 "base/device.h", | 49 "base/device.h", |
54 "base/mediachannel.h", | 50 "base/mediachannel.h", |
55 "base/mediaconstants.cc", | 51 "base/mediaconstants.cc", |
56 "base/mediaconstants.h", | 52 "base/mediaconstants.h", |
57 "base/mediaengine.cc", | 53 "base/mediaengine.cc", |
58 "base/mediaengine.h", | 54 "base/mediaengine.h", |
59 "base/rtpdataengine.cc", | 55 "base/rtpdataengine.cc", |
60 "base/rtpdataengine.h", | 56 "base/rtpdataengine.h", |
61 "base/rtputils.cc", | 57 "base/rtputils.cc", |
(...skipping 29 matching lines...) Expand all Loading... |
91 "$rtc_libyuv_dir", | 87 "$rtc_libyuv_dir", |
92 ] | 88 ] |
93 } else { | 89 } else { |
94 # Need to add a directory normally exported by libyuv. | 90 # Need to add a directory normally exported by libyuv. |
95 include_dirs += [ "$rtc_libyuv_dir/include" ] | 91 include_dirs += [ "$rtc_libyuv_dir/include" ] |
96 } | 92 } |
97 | 93 |
98 deps += [ | 94 deps += [ |
99 "..:webrtc_common", | 95 "..:webrtc_common", |
100 "../api:libjingle_peerconnection_api", | 96 "../api:libjingle_peerconnection_api", |
101 "../api:video_frame_api", | |
102 "../api/audio_codecs:audio_codecs_api", | 97 "../api/audio_codecs:audio_codecs_api", |
103 "../api/audio_codecs:builtin_audio_encoder_factory", | |
104 "../base:rtc_base", | 98 "../base:rtc_base", |
105 "../base:rtc_base_approved", | 99 "../base:rtc_base_approved", |
106 "../call:call_interfaces", | 100 "../call:call_interfaces", |
107 "../common_video:common_video", | |
108 "../p2p", | 101 "../p2p", |
109 ] | 102 ] |
110 | 103 |
111 if (is_nacl) { | 104 if (is_nacl) { |
112 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 105 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
113 } | 106 } |
114 } | 107 } |
115 | 108 |
| 109 rtc_static_library("rtc_media_base_datachannel_only") { |
| 110 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 111 # Enabling GN check triggers cyclic dependency error: |
| 112 # //webrtc/media:rtc_media_base -> |
| 113 # //webrtc/pc:rtc_pc -> |
| 114 # //webrtc/media:media -> |
| 115 # //webrtc/media:rtc_media_base |
| 116 check_includes = false |
| 117 defines = [] |
| 118 sources = [ |
| 119 "base/codec.cc", |
| 120 "base/codec.h", |
| 121 ] |
| 122 |
| 123 if (!build_with_chromium && is_clang) { |
| 124 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 125 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 126 } |
| 127 |
| 128 public_deps = [ |
| 129 ":rtc_media_base_common", |
| 130 ] |
| 131 } |
| 132 |
| 133 rtc_static_library("rtc_media_base") { |
| 134 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 135 # Enabling GN check triggers cyclic dependency error: |
| 136 # //webrtc/media:rtc_media_base -> |
| 137 # //webrtc/pc:rtc_pc -> |
| 138 # //webrtc/media:media -> |
| 139 # //webrtc/media:rtc_media_base |
| 140 check_includes = false |
| 141 defines = [ |
| 142 "HAVE_WEBRTC_VOICE", |
| 143 "HAVE_WEBRTC_VIDEO", |
| 144 ] |
| 145 libs = [] |
| 146 deps = [] |
| 147 sources = [ |
| 148 "base/codec.cc", |
| 149 "base/codec.h", |
| 150 ] |
| 151 |
| 152 configs += [ ":rtc_media_warnings_config" ] |
| 153 |
| 154 if (!build_with_chromium && is_clang) { |
| 155 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 156 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 157 } |
| 158 |
| 159 deps += [ |
| 160 "../api:video_frame_api", |
| 161 "../api/audio_codecs:builtin_audio_encoder_factory", |
| 162 "../common_video:common_video", |
| 163 ] |
| 164 |
| 165 public_deps = [ |
| 166 ":rtc_media_base_common", |
| 167 ] |
| 168 } |
| 169 |
| 170 rtc_static_library("rtc_media_datachannel_only") { |
| 171 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 172 # Enabling GN check triggers cyclic dependency error: |
| 173 # //webrtc/media:media -> |
| 174 # //webrtc/media:rtc_media -> |
| 175 # //webrtc/pc:rtc_pc -> |
| 176 # //webrtc/media:media |
| 177 check_includes = false |
| 178 defines = [] |
| 179 deps = [] |
| 180 sources = [ |
| 181 "sctp/sctptransport.cc", |
| 182 "sctp/sctptransport.h", |
| 183 "sctp/sctptransportinternal.h", |
| 184 ] |
| 185 |
| 186 configs += [ ":rtc_media_warnings_config" ] |
| 187 |
| 188 if (!build_with_chromium && is_clang) { |
| 189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 191 } |
| 192 |
| 193 if (is_win) { |
| 194 cflags = [ |
| 195 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. |
| 196 "/wd4267", # conversion from "size_t" to "int", possible loss of data. |
| 197 "/wd4389", # signed/unsigned mismatch. |
| 198 ] |
| 199 } |
| 200 |
| 201 if (rtc_enable_sctp && rtc_build_usrsctp) { |
| 202 include_dirs = [ |
| 203 # TODO(jiayl): move this into the public_configs of |
| 204 # //third_party/usrsctp/BUILD.gn. |
| 205 "//third_party/usrsctp/usrsctplib", |
| 206 ] |
| 207 deps += [ "//third_party/usrsctp" ] |
| 208 } |
| 209 |
| 210 deps += [ |
| 211 ":rtc_media_base_datachannel_only", |
| 212 "..:webrtc_common", |
| 213 "../api:call_api", |
| 214 "../api:transport_api", |
| 215 "../base:rtc_base", |
| 216 "../base:rtc_base_approved", |
| 217 "../p2p:rtc_p2p", |
| 218 "../system_wrappers", |
| 219 ] |
| 220 } |
| 221 |
116 rtc_static_library("rtc_media") { | 222 rtc_static_library("rtc_media") { |
117 # TODO(kjellander): Remove (bugs.webrtc.org/6828) | 223 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
118 # Enabling GN check triggers cyclic dependency error: | 224 # Enabling GN check triggers cyclic dependency error: |
119 # //webrtc/media:media -> | 225 # //webrtc/media:media -> |
120 # //webrtc/media:rtc_media -> | 226 # //webrtc/media:rtc_media -> |
121 # //webrtc/pc:rtc_pc -> | 227 # //webrtc/pc:rtc_pc -> |
122 # //webrtc/media:media | 228 # //webrtc/media:media |
123 check_includes = false | 229 check_includes = false |
124 defines = [] | 230 defines = [] |
125 libs = [] | 231 libs = [] |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 "../modules/video_coding:video_coding_utility", | 564 "../modules/video_coding:video_coding_utility", |
459 "../modules/video_coding:webrtc_vp8", | 565 "../modules/video_coding:webrtc_vp8", |
460 "../p2p:p2p_test_utils", | 566 "../p2p:p2p_test_utils", |
461 "../system_wrappers:metrics_default", | 567 "../system_wrappers:metrics_default", |
462 "../test:audio_codec_mocks", | 568 "../test:audio_codec_mocks", |
463 "../test:test_support", | 569 "../test:test_support", |
464 "../voice_engine:voice_engine", | 570 "../voice_engine:voice_engine", |
465 ] | 571 ] |
466 } | 572 } |
467 } | 573 } |
OLD | NEW |