Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: webrtc/media/BUILD.gn

Issue 2508163002: Revert of Split out target rtc_media_base from rtc_media (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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",
16 ] 15 ]
17 } 16 }
18 17
19 config("rtc_media_defines_config") { 18 config("rtc_media_defines_config") {
20 defines = [ 19 defines = [
21 "HAVE_WEBRTC_VIDEO", 20 "HAVE_WEBRTC_VIDEO",
22 "HAVE_WEBRTC_VOICE", 21 "HAVE_WEBRTC_VOICE",
23 ] 22 ]
24 } 23 }
25 24
26 config("rtc_media_warnings_config") { 25 config("rtc_media_warnings_config") {
27 # GN orders flags on a target before flags from configs. The default config 26 # 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 27 # adds these flags so to cancel them out they need to come from a config and
29 # cannot be on the target directly. 28 # cannot be on the target directly.
30 if (!is_win) { 29 if (!is_win) {
31 cflags = [ "-Wno-deprecated-declarations" ] 30 cflags = [ "-Wno-deprecated-declarations" ]
32 } 31 }
33 } 32 }
34 33
35 if (is_linux && rtc_use_gtk) { 34 if (is_linux && rtc_use_gtk) {
36 pkg_config("gtk-lib") { 35 pkg_config("gtk-lib") {
37 packages = [ 36 packages = [
38 "gobject-2.0", 37 "gobject-2.0",
39 "gthread-2.0", 38 "gthread-2.0",
40 "gtk+-2.0", 39 "gtk+-2.0",
41 ] 40 ]
42 } 41 }
43 } 42 }
44 43
45 rtc_static_library("rtc_media_base") { 44 rtc_static_library("rtc_media") {
46 defines = [] 45 defines = []
47 libs = [] 46 libs = []
48 deps = [] 47 deps = []
49 sources = [ 48 sources = [
50 "base/adaptedvideotracksource.cc", 49 "base/adaptedvideotracksource.cc",
51 "base/adaptedvideotracksource.h", 50 "base/adaptedvideotracksource.h",
52 "base/audiosource.h", 51 "base/audiosource.h",
53 "base/codec.cc", 52 "base/codec.cc",
54 "base/codec.h", 53 "base/codec.h",
55 "base/cryptoparams.h", 54 "base/cryptoparams.h",
(...skipping 19 matching lines...) Expand all
75 "base/videobroadcaster.cc", 74 "base/videobroadcaster.cc",
76 "base/videobroadcaster.h", 75 "base/videobroadcaster.h",
77 "base/videocapturer.cc", 76 "base/videocapturer.cc",
78 "base/videocapturer.h", 77 "base/videocapturer.h",
79 "base/videocapturerfactory.h", 78 "base/videocapturerfactory.h",
80 "base/videocommon.cc", 79 "base/videocommon.cc",
81 "base/videocommon.h", 80 "base/videocommon.h",
82 "base/videoframe.h", 81 "base/videoframe.h",
83 "base/videosourcebase.cc", 82 "base/videosourcebase.cc",
84 "base/videosourcebase.h", 83 "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 = [
117 "engine/internalencoderfactory.cc", 84 "engine/internalencoderfactory.cc",
118 "engine/internalencoderfactory.h", 85 "engine/internalencoderfactory.h",
119 "engine/nullwebrtcvideoengine.h", 86 "engine/nullwebrtcvideoengine.h",
120 "engine/payload_type_mapper.cc", 87 "engine/payload_type_mapper.cc",
121 "engine/payload_type_mapper.h", 88 "engine/payload_type_mapper.h",
122 "engine/simulcast.cc", 89 "engine/simulcast.cc",
123 "engine/simulcast.h", 90 "engine/simulcast.h",
124 "engine/videoencodersoftwarefallbackwrapper.cc", 91 "engine/videoencodersoftwarefallbackwrapper.cc",
125 "engine/videoencodersoftwarefallbackwrapper.h", 92 "engine/videoencodersoftwarefallbackwrapper.h",
126 "engine/webrtccommon.h", 93 "engine/webrtccommon.h",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 deps += [ "../modules/video_capture:video_capture_internal_impl" ] 159 deps += [ "../modules/video_capture:video_capture_internal_impl" ]
193 } 160 }
194 if (is_linux && rtc_use_gtk) { 161 if (is_linux && rtc_use_gtk) {
195 sources += [ 162 sources += [
196 "devices/gtkvideorenderer.cc", 163 "devices/gtkvideorenderer.cc",
197 "devices/gtkvideorenderer.h", 164 "devices/gtkvideorenderer.h",
198 ] 165 ]
199 public_configs += [ ":gtk-lib" ] 166 public_configs += [ ":gtk-lib" ]
200 } 167 }
201 deps += [ 168 deps += [
202 ":rtc_media_base",
203 "..:webrtc_common", 169 "..:webrtc_common",
204 "../api:call_api", 170 "../api:call_api",
205 "../base:rtc_base_approved", 171 "../base:rtc_base_approved",
206 "../call", 172 "../call",
207 "../modules/audio_mixer:audio_mixer_impl", 173 "../modules/audio_mixer:audio_mixer_impl",
208 "../modules/video_coding", 174 "../modules/video_coding",
175 "../p2p",
209 "../system_wrappers", 176 "../system_wrappers",
177 "../video",
210 "../voice_engine", 178 "../voice_engine",
211 ] 179 ]
212 } 180 }
213 181
214 if (rtc_include_tests) { 182 if (rtc_include_tests) {
215 config("rtc_unittest_main_config") { 183 config("rtc_unittest_main_config") {
216 # GN orders flags on a target before flags from configs. The default config 184 # GN orders flags on a target before flags from configs. The default config
217 # adds -Wall, and this flag have to be after -Wall -- so they need to 185 # adds -Wall, and this flag have to be after -Wall -- so they need to
218 # come from a config and can"t be on the target directly. 186 # come from a config and can"t be on the target directly.
219 if (is_clang && is_ios) { 187 if (is_clang && is_ios) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. 339 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243.
372 ":rtc_media", 340 ":rtc_media",
373 ":rtc_unittest_main", 341 ":rtc_unittest_main",
374 "../audio", 342 "../audio",
375 "../base:rtc_base_tests_utils", 343 "../base:rtc_base_tests_utils",
376 "../modules/audio_device:mock_audio_device", 344 "../modules/audio_device:mock_audio_device",
377 "../system_wrappers:metrics_default", 345 "../system_wrappers:metrics_default",
378 ] 346 ]
379 } 347 }
380 } 348 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698