kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame^] | 1 | # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("../build/webrtc.gni") |
| 10 | |
| 11 | group("pc") { |
| 12 | deps = [ |
| 13 | ":rtc_pc", |
| 14 | ] |
| 15 | } |
| 16 | |
| 17 | config("rtc_pc_config") { |
| 18 | defines = [ |
| 19 | "SRTP_RELATIVE_PATH", |
| 20 | "HAVE_SCTP", |
| 21 | "HAVE_SRTP", |
| 22 | ] |
| 23 | } |
| 24 | |
| 25 | source_set("rtc_pc") { |
| 26 | defines = [] |
| 27 | sources = [ |
| 28 | "audiomonitor.cc", |
| 29 | "audiomonitor.h", |
| 30 | "bundlefilter.cc", |
| 31 | "bundlefilter.h", |
| 32 | "channel.cc", |
| 33 | "channel.h", |
| 34 | "channelmanager.cc", |
| 35 | "channelmanager.h", |
| 36 | "currentspeakermonitor.cc", |
| 37 | "currentspeakermonitor.h", |
| 38 | "mediamonitor.cc", |
| 39 | "mediamonitor.h", |
| 40 | "mediasession.cc", |
| 41 | "mediasession.h", |
| 42 | "mediasink.h", |
| 43 | "rtcpmuxfilter.cc", |
| 44 | "rtcpmuxfilter.h", |
| 45 | "srtpfilter.cc", |
| 46 | "srtpfilter.h", |
| 47 | "voicechannel.h", |
| 48 | ] |
| 49 | |
| 50 | deps = [ |
| 51 | "../base:rtc_base", |
| 52 | "../media", |
| 53 | ] |
| 54 | |
| 55 | if (build_with_chromium) { |
| 56 | sources += [ |
| 57 | "externalhmac.cc", |
| 58 | "externalhmac.h", |
| 59 | ] |
| 60 | } |
| 61 | if (rtc_build_libsrtp) { |
| 62 | deps += [ "//third_party/libsrtp" ] |
| 63 | } |
| 64 | |
| 65 | configs += [ "..:common_config" ] |
| 66 | public_configs = [ |
| 67 | "..:common_inherited_config", |
| 68 | ":rtc_pc_config", |
| 69 | ] |
| 70 | |
| 71 | if (is_clang) { |
| 72 | # Suppress warnings from Chrome's Clang plugins. |
| 73 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 74 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 75 | } |
| 76 | } |