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("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
11 | 11 |
12 group("media") { | 12 group("media") { |
13 public_deps = [ | 13 public_deps = [ |
14 ":rtc_media", | 14 ":rtc_media", |
15 ":rtc_media_base", | |
kjellander_webrtc
2016/11/17 16:36:13
Since it was already built via indirect dependency
| |
15 ] | 16 ] |
16 } | 17 } |
17 | 18 |
18 config("rtc_media_defines_config") { | 19 config("rtc_media_defines_config") { |
19 defines = [ | 20 defines = [ |
20 "HAVE_WEBRTC_VIDEO", | 21 "HAVE_WEBRTC_VIDEO", |
21 "HAVE_WEBRTC_VOICE", | 22 "HAVE_WEBRTC_VOICE", |
22 ] | 23 ] |
23 } | 24 } |
24 | 25 |
25 config("rtc_media_warnings_config") { | 26 config("rtc_media_warnings_config") { |
26 # 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 |
27 # 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 |
28 # cannot be on the target directly. | 29 # cannot be on the target directly. |
29 if (!is_win) { | 30 if (!is_win) { |
30 cflags = [ "-Wno-deprecated-declarations" ] | 31 cflags = [ "-Wno-deprecated-declarations" ] |
31 } | 32 } |
32 } | 33 } |
33 | 34 |
34 if (is_linux && rtc_use_gtk) { | 35 if (is_linux && rtc_use_gtk) { |
35 pkg_config("gtk-lib") { | 36 pkg_config("gtk-lib") { |
36 packages = [ | 37 packages = [ |
37 "gobject-2.0", | 38 "gobject-2.0", |
38 "gthread-2.0", | 39 "gthread-2.0", |
39 "gtk+-2.0", | 40 "gtk+-2.0", |
40 ] | 41 ] |
41 } | 42 } |
42 } | 43 } |
43 | 44 |
44 rtc_static_library("rtc_media") { | 45 rtc_static_library("rtc_media_base") { |
45 defines = [] | 46 defines = [] |
46 libs = [] | 47 libs = [] |
47 deps = [] | 48 deps = [] |
48 sources = [ | 49 sources = [ |
49 "base/adaptedvideotracksource.cc", | 50 "base/adaptedvideotracksource.cc", |
50 "base/adaptedvideotracksource.h", | 51 "base/adaptedvideotracksource.h", |
51 "base/audiosource.h", | 52 "base/audiosource.h", |
52 "base/codec.cc", | 53 "base/codec.cc", |
53 "base/codec.h", | 54 "base/codec.h", |
54 "base/cryptoparams.h", | 55 "base/cryptoparams.h", |
(...skipping 19 matching lines...) Expand all Loading... | |
74 "base/videobroadcaster.cc", | 75 "base/videobroadcaster.cc", |
75 "base/videobroadcaster.h", | 76 "base/videobroadcaster.h", |
76 "base/videocapturer.cc", | 77 "base/videocapturer.cc", |
77 "base/videocapturer.h", | 78 "base/videocapturer.h", |
78 "base/videocapturerfactory.h", | 79 "base/videocapturerfactory.h", |
79 "base/videocommon.cc", | 80 "base/videocommon.cc", |
80 "base/videocommon.h", | 81 "base/videocommon.h", |
81 "base/videoframe.h", | 82 "base/videoframe.h", |
82 "base/videosourcebase.cc", | 83 "base/videosourcebase.cc", |
83 "base/videosourcebase.h", | 84 "base/videosourcebase.h", |
85 ] | |
86 | |
87 configs += [ ":rtc_media_warnings_config" ] | |
88 | |
89 if (!build_with_chromium && is_clang) { | |
90 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
91 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
92 } | |
93 | |
94 include_dirs = [] | |
95 if (rtc_build_libyuv) { | |
96 deps += [ "$rtc_libyuv_dir" ] | |
97 public_deps = [ | |
98 "$rtc_libyuv_dir", | |
99 ] | |
100 } else { | |
101 # Need to add a directory normally exported by libyuv. | |
102 include_dirs += [ "$rtc_libyuv_dir/include" ] | |
103 } | |
104 | |
105 deps += [ | |
106 "..:webrtc_common", | |
107 "../base:rtc_base_approved", | |
108 "../p2p", | |
109 ] | |
110 } | |
111 | |
112 rtc_static_library("rtc_media") { | |
113 defines = [] | |
114 libs = [] | |
115 deps = [] | |
116 sources = [ | |
84 "engine/internalencoderfactory.cc", | 117 "engine/internalencoderfactory.cc", |
85 "engine/internalencoderfactory.h", | 118 "engine/internalencoderfactory.h", |
86 "engine/nullwebrtcvideoengine.h", | 119 "engine/nullwebrtcvideoengine.h", |
87 "engine/payload_type_mapper.cc", | 120 "engine/payload_type_mapper.cc", |
88 "engine/payload_type_mapper.h", | 121 "engine/payload_type_mapper.h", |
89 "engine/simulcast.cc", | 122 "engine/simulcast.cc", |
90 "engine/simulcast.h", | 123 "engine/simulcast.h", |
91 "engine/videoencodersoftwarefallbackwrapper.cc", | 124 "engine/videoencodersoftwarefallbackwrapper.cc", |
92 "engine/videoencodersoftwarefallbackwrapper.h", | 125 "engine/videoencodersoftwarefallbackwrapper.h", |
93 "engine/webrtccommon.h", | 126 "engine/webrtccommon.h", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 192 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
160 } | 193 } |
161 if (is_linux && rtc_use_gtk) { | 194 if (is_linux && rtc_use_gtk) { |
162 sources += [ | 195 sources += [ |
163 "devices/gtkvideorenderer.cc", | 196 "devices/gtkvideorenderer.cc", |
164 "devices/gtkvideorenderer.h", | 197 "devices/gtkvideorenderer.h", |
165 ] | 198 ] |
166 public_configs += [ ":gtk-lib" ] | 199 public_configs += [ ":gtk-lib" ] |
167 } | 200 } |
168 deps += [ | 201 deps += [ |
202 ":rtc_media_base", | |
169 "..:webrtc_common", | 203 "..:webrtc_common", |
170 "../api:call_api", | 204 "../api:call_api", |
171 "../base:rtc_base_approved", | 205 "../base:rtc_base_approved", |
172 "../call", | 206 "../call", |
173 "../modules/audio_mixer:audio_mixer_impl", | 207 "../modules/audio_mixer:audio_mixer_impl", |
174 "../modules/video_coding", | 208 "../modules/video_coding", |
175 "../p2p", | |
176 "../system_wrappers", | 209 "../system_wrappers", |
177 "../video", | |
178 "../voice_engine", | 210 "../voice_engine", |
179 ] | 211 ] |
180 } | 212 } |
181 | 213 |
182 if (rtc_include_tests) { | 214 if (rtc_include_tests) { |
183 config("rtc_unittest_main_config") { | 215 config("rtc_unittest_main_config") { |
184 # GN orders flags on a target before flags from configs. The default config | 216 # GN orders flags on a target before flags from configs. The default config |
185 # adds -Wall, and this flag have to be after -Wall -- so they need to | 217 # adds -Wall, and this flag have to be after -Wall -- so they need to |
186 # come from a config and can"t be on the target directly. | 218 # come from a config and can"t be on the target directly. |
187 if (is_clang && is_ios) { | 219 if (is_clang && is_ios) { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. | 371 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. |
340 ":rtc_media", | 372 ":rtc_media", |
341 ":rtc_unittest_main", | 373 ":rtc_unittest_main", |
342 "../audio", | 374 "../audio", |
343 "../base:rtc_base_tests_utils", | 375 "../base:rtc_base_tests_utils", |
344 "../modules/audio_device:mock_audio_device", | 376 "../modules/audio_device:mock_audio_device", |
345 "../system_wrappers:metrics_default", | 377 "../system_wrappers:metrics_default", |
346 ] | 378 ] |
347 } | 379 } |
348 } | 380 } |
OLD | NEW |