| 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") |
| (...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 if (is_linux && rtc_use_gtk) { | |
| 36 pkg_config("gtk-lib") { | |
| 37 packages = [ | |
| 38 "gobject-2.0", | |
| 39 "gthread-2.0", | |
| 40 "gtk+-2.0", | |
| 41 ] | |
| 42 } | |
| 43 } | |
| 44 | |
| 45 rtc_static_library("rtc_media_base") { | 35 rtc_static_library("rtc_media_base") { |
| 46 defines = [] | 36 defines = [] |
| 47 libs = [] | 37 libs = [] |
| 48 deps = [] | 38 deps = [] |
| 49 sources = [ | 39 sources = [ |
| 50 "base/adaptedvideotracksource.cc", | 40 "base/adaptedvideotracksource.cc", |
| 51 "base/adaptedvideotracksource.h", | 41 "base/adaptedvideotracksource.h", |
| 52 "base/audiosource.h", | 42 "base/audiosource.h", |
| 53 "base/codec.cc", | 43 "base/codec.cc", |
| 54 "base/codec.h", | 44 "base/codec.h", |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 deps += [ "//third_party/usrsctp" ] | 181 deps += [ "//third_party/usrsctp" ] |
| 192 } | 182 } |
| 193 | 183 |
| 194 public_configs = [] | 184 public_configs = [] |
| 195 if (build_with_chromium) { | 185 if (build_with_chromium) { |
| 196 deps += [ "../modules/video_capture:video_capture" ] | 186 deps += [ "../modules/video_capture:video_capture" ] |
| 197 } else { | 187 } else { |
| 198 public_configs += [ ":rtc_media_defines_config" ] | 188 public_configs += [ ":rtc_media_defines_config" ] |
| 199 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 189 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 200 } | 190 } |
| 201 if (is_linux && rtc_use_gtk) { | |
| 202 sources += [ | |
| 203 "devices/gtkvideorenderer.cc", | |
| 204 "devices/gtkvideorenderer.h", | |
| 205 ] | |
| 206 public_configs += [ ":gtk-lib" ] | |
| 207 } | |
| 208 deps += [ | 191 deps += [ |
| 209 ":rtc_media_base", | 192 ":rtc_media_base", |
| 210 "..:webrtc_common", | 193 "..:webrtc_common", |
| 211 "../api:call_api", | 194 "../api:call_api", |
| 212 "../api:transport_api", | 195 "../api:transport_api", |
| 213 "../base:rtc_base_approved", | 196 "../base:rtc_base_approved", |
| 214 "../call", | 197 "../call", |
| 215 "../modules/audio_mixer:audio_mixer_impl", | 198 "../modules/audio_mixer:audio_mixer_impl", |
| 216 "../modules/video_coding", | 199 "../modules/video_coding", |
| 217 "../system_wrappers", | 200 "../system_wrappers", |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. | 367 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. |
| 385 ":rtc_media", | 368 ":rtc_media", |
| 386 ":rtc_unittest_main", | 369 ":rtc_unittest_main", |
| 387 "../audio", | 370 "../audio", |
| 388 "../base:rtc_base_tests_utils", | 371 "../base:rtc_base_tests_utils", |
| 389 "../modules/audio_device:mock_audio_device", | 372 "../modules/audio_device:mock_audio_device", |
| 390 "../system_wrappers:metrics_default", | 373 "../system_wrappers:metrics_default", |
| 391 ] | 374 ] |
| 392 } | 375 } |
| 393 } | 376 } |
| OLD | NEW |