 Chromium Code Reviews
 Chromium Code Reviews Issue 2471573003:
  Split out target rtc_media_base from rtc_media  (Closed)
    
  
    Issue 2471573003:
  Split out target rtc_media_base from rtc_media  (Closed) 
  | 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", | |
| 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/nullwebrtcvideoengine.h", | 117 "engine/nullwebrtcvideoengine.h", | 
| 85 "engine/payload_type_mapper.cc", | 118 "engine/payload_type_mapper.cc", | 
| 86 "engine/payload_type_mapper.h", | 119 "engine/payload_type_mapper.h", | 
| 87 "engine/simulcast.cc", | 120 "engine/simulcast.cc", | 
| 88 "engine/simulcast.h", | 121 "engine/simulcast.h", | 
| 89 "engine/videoencodersoftwarefallbackwrapper.cc", | 122 "engine/videoencodersoftwarefallbackwrapper.cc", | 
| 90 "engine/videoencodersoftwarefallbackwrapper.h", | 123 "engine/videoencodersoftwarefallbackwrapper.h", | 
| 91 "engine/webrtccommon.h", | 124 "engine/webrtccommon.h", | 
| 92 "engine/webrtcmediaengine.cc", | 125 "engine/webrtcmediaengine.cc", | 
| 93 "engine/webrtcmediaengine.h", | 126 "engine/webrtcmediaengine.h", | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 190 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 
| 158 } | 191 } | 
| 159 if (is_linux && rtc_use_gtk) { | 192 if (is_linux && rtc_use_gtk) { | 
| 160 sources += [ | 193 sources += [ | 
| 161 "devices/gtkvideorenderer.cc", | 194 "devices/gtkvideorenderer.cc", | 
| 162 "devices/gtkvideorenderer.h", | 195 "devices/gtkvideorenderer.h", | 
| 163 ] | 196 ] | 
| 164 public_configs += [ ":gtk-lib" ] | 197 public_configs += [ ":gtk-lib" ] | 
| 165 } | 198 } | 
| 166 deps += [ | 199 deps += [ | 
| 200 ":rtc_media_base", | |
| 167 "..:webrtc_common", | 201 "..:webrtc_common", | 
| 168 "../api:call_api", | 202 "../api:call_api", | 
| 169 "../base:rtc_base_approved", | 203 "../base:rtc_base_approved", | 
| 170 "../call", | 204 "../call", | 
| 171 "../modules/video_coding", | 205 "../modules/video_coding", | 
| 172 "../p2p", | |
| 173 "../system_wrappers", | 206 "../system_wrappers", | 
| 174 "../video", | |
| 
kjellander_webrtc
2016/11/17 14:58:42
So video wasn't really needed?
 
magjed_webrtc
2016/11/17 15:12:49
No. There is no includes of webrtc/video/ at all i
 | |
| 175 "../voice_engine", | 207 "../voice_engine", | 
| 176 ] | 208 ] | 
| 177 } | 209 } | 
| 178 | 210 | 
| 179 if (rtc_include_tests) { | 211 if (rtc_include_tests) { | 
| 180 config("rtc_unittest_main_config") { | 212 config("rtc_unittest_main_config") { | 
| 181 # GN orders flags on a target before flags from configs. The default config | 213 # GN orders flags on a target before flags from configs. The default config | 
| 182 # adds -Wall, and this flag have to be after -Wall -- so they need to | 214 # adds -Wall, and this flag have to be after -Wall -- so they need to | 
| 183 # come from a config and can"t be on the target directly. | 215 # come from a config and can"t be on the target directly. | 
| 184 if (is_clang && is_ios) { | 216 if (is_clang && is_ios) { | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. | 368 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. | 
| 337 ":rtc_media", | 369 ":rtc_media", | 
| 338 ":rtc_unittest_main", | 370 ":rtc_unittest_main", | 
| 339 "../audio", | 371 "../audio", | 
| 340 "../base:rtc_base_tests_utils", | 372 "../base:rtc_base_tests_utils", | 
| 341 "../modules/audio_device:mock_audio_device", | 373 "../modules/audio_device:mock_audio_device", | 
| 342 "../system_wrappers:metrics_default", | 374 "../system_wrappers:metrics_default", | 
| 343 ] | 375 ] | 
| 344 } | 376 } | 
| 345 } | 377 } | 
| OLD | NEW |